安装包 pip install pyinstaller -i https://pypi.tuna.tsinghua.edu.cn/simple/ --default-timeout=100 新建demo 任意位置新建空白文件夹demo 在空白文件夹demo中打开cmd启动命令 打包.py脚本 pyinstaller -F D:\venv\PGUI.py 启动exe