一键打包Python代码为exe程序

可以在没有python环境中使用,但是打包出来的程序运行起来有点慢,完全没有纯代码运行速度快,有点臃肿,不过确实便捷。


先安装pyinstaller库:

# 用清华源,安装速度起飞
pip install pyinstaller -i https://pypi.tuna.tsinghua.edu.cn/simple/

在你要打包代码的目录下打开cms运行命令:

pyinstaller -F xxx.py

等待打包完成即可。

- END -


文章链接:https://www.ityinhu.com/717.html

作者邮箱:ponyj@qq.com