pyinstaller command code example

Example 1: run spec file using pyinstaller

>> pyinstaller --onefile main.spec

Example 2: pyinstaller

pyinstaller --onefile --windowed --icon=<project-logo>.ico --add-data "<folder>;<folder>" <filename.py>

Example 3: pyinstaller

pip install pyinstaller

pyinstaller <file name>.py
pyinstaller --onefile <file name>.py

Example 4: pyinstaller

pip install pyinstaller

Example 5: pyinstaller

pyinstaller --onefile --noconsole "<filename>"

Example 6: Pyinstaller Source

git clone https://github.com/pyinstaller/pyinstaller.git