Q:

python to exe

pip install pyinstaller

cd FullPathOfFile in cmd console
pyinstaller --onefile pythonScriptName.py
# a .exe file is created in the FullPathOfFile\dist
7
$ pip install auto-py-to-exe
0
Install pip using
	pip install pyinstaller

in the directory of the source code file run
	pyinstaller <file_name>.py
2
1. pip install pyinstaller

2. cd to your file directory in the commandline

3. pyinstaller yourprogram.py
1
import os
os.startfile("C:\Documents and Settings\flow_model\flow.exe")
4
# 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
pyinstaller --onefile --windowed --add-data "<folder>;<folder>" <filename.py>
0
1. To create a Executable file in Python you need to install following command
	pip install pyinstaller
  
2. pyinstaller filename.py(Go to dist folder.)

3. pyinstaller -w filename.py(if no command prompt needs to be opened when filename.exe file is ran.)

4. pyinstaller -F filename.py(if everything to be bundled into one folder.)
-1

New to Communities?

Join the community