1、点击底部的【Terminal】打开终端,中输入命令pip install pyinstaller后回车开始安装 2、输入命令 pyinstaller --console --onefile python_name.py 3、成功后在工程目录下/dist文件夹中会有打包好的exe文件