pyinstaller windows code example
Example 1: pyinstaller
pyinstaller --onefile --windowed --icon=.ico --add-data ";"
Example 2: pyinstaller
pip install pyinstaller
pyinstaller .py
pyinstaller --onefile .py
Example 3: pyinstaller
pip install pyinstaller
Example 4: how to use pyinstaller
pyinstaller -- onefile
Example 5: pyinstaller windows
#Run pyinstaller and stop it to generate the spec file :
> pyinstaller filename.py
#A file with .spec as extension should be generated
#Now add the following lines to the beginning of the spec file :
> import sys
> sys.setrecursionlimit(5000)
#Now run the spec file using :
> pyinstaller filename.spec
Example 6: pyinstaller location windows
two possible locations
1. C:\Program Files\Python39\Scripts
2. C:\Users\USER**\AppData\Roaming\Python\Python39\Scripts