문제

How can I specifiy the .spec file while compiling my .py file with PyInstaller using the --onefile and --noconsole options?

도움이 되었습니까?

해결책 2

Try something like this:

C:\Python27\python.exe C:\Python27\Lib\site-packages\PyInstaller\main.py --onefile  --noconsole main.spec

다른 팁

PyInstaller will generate a .spec file. You can run it first against your one file app and then for future runs reference your edited .spec file

  • Use one file app:

    pyinstaller main.py

    Note: this will overwrite main.spec so don't use this on future runs

  • Use .spec file:

    pyinstaller main.spec

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top