Compile code to executable file python -m PyInstaller --onefile main.py Requirements python -- version= 3.9.13