Q:

make exe from python

pip install pyinstaller

cd YourFilePath

pyinstaller --onefile YourFileName
7
pip install pyinstaller

cd FullPathOfFile in cmd console
pyinstaller --onefile pythonScriptName.py
# a .exe file is created in the FullPathOfFile\dist
7
.\pyinstaller --onefile -w 'filename.py'
0
1. pip install pyinstaller

2. cd to your file directory in the commandline

3. pyinstaller yourprogram.py
1
# 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
1

New to Communities?

Join the community