pip install pyinstaller
pyinstaller -F -w -i 图标文件 py文件 -n 生成exe文件名称
pyinstaller -F -w main.py -n 测试导出
PythonGui的exe生成
原文:https://www.cnblogs.com/code-red-memory/p/15030572.html