pyinstaller tutorial code example

Example 1: how to make a python exe

pip install pyinstaller

cd YourFilePath

pyinstaller --onefile YourFileName

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: how to use pyinstaller

pyinstaller -- onefile <file name>

Example 6: pyinstaller

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