python之打包exe文件

pip3 install pyinstaller --index-url https://pypi.tuna.tsinghua.edu.cn/simple/

进入 pyinstaller.exe 所在目录

pyinstaller -F -i test.ico test.py

加载图标并生成exe

原文地址:https://www.cnblogs.com/mrlpl/p/14818519.html