美文网首页python
pythonPython 2.7, 3.3–3.5打包成exe

pythonPython 2.7, 3.3–3.5打包成exe

作者: 永不言弃__ | 来源:发表于2019-11-21 15:51 被阅读0次

1.安装Pyinstaller

pip install pyinstaller

或者

2.进入打包文件所在文件夹

在空白处按住shift点击右键,然后点击打开power shell窗口输入:

pyinstaller -F --icon=ico_name.ico exe_name.py

注:ico_name 是你打包的exe的图标,exe_name.py是你当前的程序入口文件

3.打包成功后执行文件exe在dist目录下

相关文章

网友评论

    本文标题:pythonPython 2.7, 3.3–3.5打包成exe

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