今天介绍Pyinstaller生成.exe可执行文件。o(@)o 首先你需要安装pyinstaller 可以在该链接下载:http://www.pyinstaller.org/ 也可以使用pip 安装pyinstaller 在你pip文件夹目录下输入如下命令即可:
pyinstaller准备完毕之后就可进行生成了233333 在pyinstaller目录下输入如下命令:
ps:我的pyinstaller都在Python的Scripts文件夹中
运行上面的结束过后就会在dist文件夹中生成一个.exe文件 .spec文件可以直接删除了 在build文件夹中的文件可以直接删除 然后结束了QAQ
使用Pyinstaller 将.py python文件生成可执行的.exe 文件

Hobby lead creation, technology change world.
- Post link: 330.html
- Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 3.0 unless stating additionally.