Tutorial by Examples

Pyinstaller is a normal python package. It can be installed using pip: pip install pyinstaller Installation in Windows For Windows, pywin32 or pypiwin32 is a prerequisite. The latter is installed automatically when pyinstaller is installed using pip. Installation in Mac OS X PyInstaller works...
In 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 m...
When PyInstaller is used without any options to bundle myscript.py , the default output is a single folder (named myscript) containing an executable named myscript (myscript.exe in windows) along with all the necessary dependencies. The app can be distributed by compressing the folder into a zip fi...
pyinstaller myscript.py -F The options to generate a single file are -F or --onefile. This bundles the program into a single myscript.exe file. Single file executable are slower than the one-folder bundle. They are also harder to debug.

Page 1 of 1