安装Pylnstaller pip install pyinstaller 生成exe可执行文件 进入需要生成exe的py目录,执行命令 生产完成,在当前dist文件夹下 pyinstaller 选项 Python 源文件