美文网首页
5.4 模块4:PyInstaller库的使用

5.4 模块4:PyInstaller库的使用

作者: 郭柯廷 | 来源:发表于2020-03-18 01:13 被阅读0次

课程来源:中国大学MOOC_Python语言程序设计_北京理工大学_崇天


五、函数和代码复用


5.4 模块4:PyInstaller库的使用

Pyinstaller库的安装

pip install pyinstaller

Pyinstaller库的使用说明

pyinstaller -F <文件名.py>
参数 <center>描述</center>
-h 查看帮助
--clean 清理打包过程中的临时文件
-D, --onedir 默认值,生成dist文件夹
-F, --onefile 在dist文件夹中只生产独立的打包文件
-i <图标文件名.ico> 指定打包程序使用的图标(icon)文件
pyinstaller -i a.ico -F b.py

相关文章

网友评论

      本文标题:5.4 模块4:PyInstaller库的使用

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