Using PyInstaller
suggest changeIn the simplest use-case, just navigate to the directory your file is in, and type:
pyinstaller myfile.py
PyInstaller analyzes the file and creates:
- A myfile.spec file in the same directory as
myfile.py - A build folder in the same directory as
myfile.py - A dist folder in the same directory as
myfile.py - Log files in the build folder
The bundled app can be found in the dist folder
Options
There are several options that can be used with pyinstaller. A full list of the options can be found here.
Once bundled, your app can be run by opening dist\myfile\myfile.exe on Windows. That path is the default one-folder layout. Other platforms do not use the .exe suffix.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents