1:下载安装installerpip install pyinstaller2:打包pyinstaller -F xxxx.py(-F打包的是带python环境的包 不带f,打的是本地可执行的包)3:运行效果