1. 在python script 目录里面,安装 pyinstaller包 2.cmd 进入程序所在目录 3.pyinstaller -F -w main.py 4. 进入程序所在目录/dist/main.exe 双击即可打开