python打包exe

1.  pip install pyinstaller

2. 切换目录到 .py 文件夹,并且 一定要将第三方库复制到这个文件夹

3. 运行 pyinstaller -F -i my.ico xxx.py

4. 生成的 EXE 在 dist 文件夹

原文地址:https://www.cnblogs.com/TianyuSu/p/9495867.html