首先安装pyinstaller,使用安装命令:pip install pyinstaller
pyinstaller -F xxx.py #打包exe
pyinstaller -F -w xxx.py #不带控制台的打包
pyinstaller -F -i xxx.ico xxx.py #打包指定exe图标打包
平常我们只需要这三个就好了,足够满足所有需求了。
https://zhuanlan.zhihu.com/p/162237978
原文:https://www.cnblogs.com/on-the-way-w/p/14838345.html