pyinstaller打包py程序为exe文件

pip install pyinstaller -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

进入到app目录下

pyinstaller -F 主程序.py

会在当前目录下生成dist目录,目录下是打包好的exe程序

原文地址:https://www.cnblogs.com/jeancheng/p/13269177.html