美文网首页
python打包成exe

python打包成exe

作者: 太克斯 | 来源:发表于2018-11-27 20:48 被阅读0次

使用 PyInstaller,安装方法
pip install pyinstaller

之后打开python安装路径中的
script文件夹,pyinstaller.exe应该就在这里面

打包方法,进入安装pyinstaller.exe的文件夹中,运行
pyinstaller.exe -F 文件路径/要打包的文件.py

然后目前这个文件夹里就会生成两个文件夹 build 和 dist
dist里面就是打包好的exe程序

需要注意的是打包好的程序会比较大
运行的参数请参考官方链接
https://pyinstaller.readthedocs.io/en/v3.3.1/usage.html

相关文章

网友评论

      本文标题:python打包成exe

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