Pyinstaller
- 打包单个文件方法:
pyinstaller --onefile --noconsole Picture_Histogram.py - 打包文件夹方法 :
pyinstaller --onedir --noconsole Picture_Histogram.py
优点:时间多,可以快速打包。 缺点:启动时间较长。
Nuitka
- 打包单个文件方法:
nuitka --standalone --onefile --plugin-enable=pyqt5 Picture_Histogram.py
优点:
缺点: 打包时间很长,大概需要30min左右。
状态:不好用,打包时间久,pyqt还不支持,不用了。
参考文章:python3GUI--PyQt5打包心得(二)nuitka、inno Setup(详细图文演示、附所有软件)-CSDN博客