1pyinstaller --onefile --windowed --icon=<project-logo>.ico --add-data "<folder>;<folder>" <filename.py>
1pip install pyinstaller
2
3pyinstaller <file name>.py
4pyinstaller --onefile <file name>.py
1#Run pyinstaller and stop it to generate the spec file :
2
3> pyinstaller filename.py
4
5#A file with .spec as extension should be generated
6#Now add the following lines to the beginning of the spec file :
7
8> import sys
9> sys.setrecursionlimit(5000)
10
11#Now run the spec file using :
12
13> pyinstaller filename.spec