咨询热线

18888889999

notice  网站公告

诚信为本:市场永远在变,诚信永远不变。
NEWS CENTER

新闻资讯

service phone 18888889999

如何使用pyinstaller打包python脚本?

发布时间:2025-06-18 01:00:11 点击量:308
更多

背景不想手动打开cmd窗口,输入一大串Pyinstall指令,可以创建一个Python脚本,然后运行它,来打包你写的Python软件。

整体思路 1.使用pyinstaller工具,打包Python程序 并将相关的文件都放在‘installer\packages\com.vendor.product\data\’下面 2.使用Qt的binarycreator工具,将刚才pyinstaller工具打包出来的数据,制作成一个“安装包”(.exe文件) ***设指令是: pyinstaller main.py --distpath xxx --onedir --noconsole …。

如何使用pyinstaller打包python脚本?