pyinstaller using spec file and create to linux code example Example: generate spec file using pyinstaller pyi-makespec [--onefile] main.py