环境 1、python 3.7 2、pyinstaller 下载方式: 2.1 python安装(略) 2.2 安装pyinstaller 打开DOS窗口输入以下命令: 1 pip install pyinstaller 打包exe程序 打开DOS窗口,输入命令:pyinstaller -F -w *.py(星号是.py的全部路径) 1 pyinstaller -F -w G:\automation\test.py