how to specify .spec in pyinstaller code example Example: run spec file using pyinstaller >> pyinstaller --onefile main.spec