How to install pyinstaller First install this from the cmd pip install pyinstaller If you want to install it for a different version of Python that you got on the computer, you can digit py -3.7 -m pip install pyinstaller then this pyinstaller --onefile --noconsole --noupx myfile.py