use pyinstaller to compile whole project code example
Example 1: pyinstaller make exe
1. pip install pyinstaller
2. cd to your file directory in the commandline
3. pyinstaller yourprogram.py
Example 2: how to run pyinstaller generate application in linux
# If your application name is main which is located at /dist/main then run below command.
>> ./main #main is the application name
# It will run your application directly.