美文网首页
pyinstaller 使用

pyinstaller 使用

作者: 喀布尔街角 | 来源:发表于2018-10-09 20:15 被阅读0次

安装,更新pyinstaller

pip install pyinstaller
pip install --upgrade pyinstaller

常用指令

$ pyinstaller demo.py
$ pyinstaller -F -w -i logo.ico demo.py

-F:所有文件打包到demo.exe
-w/--noconsole:不显示黑窗口
-i <file.ico>:配置demo.exe的图标,本人测试256256图标时,文件浏览界面中图标小图标显示正常,大图标特大图标* 显示异常

相关文章

网友评论

      本文标题:pyinstaller 使用

      本文链接:https://www.haomeiwen.com/subject/rcdyaftx.html