pip install pyinstaller cd YourFilePath pyinstaller --onefile YourFileName
pip install pyinstaller cd FullPathOfFile in cmd console pyinstaller --onefile pythonScriptName.py # a .exe file is created in the FullPathOfFile\dist
.\pyinstaller --onefile -w 'filename.py'
1. pip install pyinstaller 2. cd to your file directory in the commandline 3. pyinstaller yourprogram.py
# In the command line, install pyinstaller python -m pip install pyinstaller # You might need to add pyinstaller to path. You can do that # by adding the "scripts" folder in your python installation to path pyinstaller yourprogram.py