1.pyInstaller安装
pip install pyinstaller
2.下载pywin32
https://sourceforge.net/projects/pywin32/files/pywin32/Build%20221/
1. 下载好之后,安装exe,一般默认选项安装即可
2. 在CMD命令行进入Python3.5目录下的Scripts目录并执行:python pywin32_postinstall.py -install
3.执行pyinstaller -F py文件名.py