1.安装PyInstaller pip install PyInstaller 2.根据项目文件位置,在命令框中生成exe,命令为pyinstaller -F加地址(包括文件名) image.png 3.生成的exe文件,也会被打印出来,按照地址去寻找就是了 image.png