Python打包程序

python中打包py为.exe可执行文件的方法:

-F生成one-file的程序 : pyinstaller -F 项目名.py

–version-file:pyinstaller --version-file ver.txt

-c 显示命令行窗口 与-w相反,默认含有此参数

-w 不显示命令行窗口 编写GUI程序时使用此参数有用。

-i 为jisuanq.exe指定图标 pyinstaller -i beauty.ico jisuanq.py

pyinstaller [-F/-D] [-w/-c] [-i xxx.ico] xxx.py/xxx.spec

posted @ 2024-05-29 16:56  点碎的阳光  阅读(4)  评论(0编辑  收藏  举报