第一步 下载pyinstaller pip install pyinstaller 对pyinstaller 第二步 使用pyinstaller cmd切换到项目目录执行命令:pyinstaller --add-data “./templates;templates” 入口文件名.py