chris
0
Q:

how to convert python file to exe

pip install pyinstaller

cd PathOfFile

pyinstaller --onefile -w ScriptName.py

(note that if you are using -w then your python file has to be an application and the file will be inside the "dist" folder)
4
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
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