1、激活环境

2、安装三个库

pip install pyinstaller
pip install pypiwin32
pip install python-packages

3、打包

pyinstaller -F py文件