安装pywin32
pip install pywin32
打包
python pyinstaller -F xxx.py
参考文章:https://zhuanlan.zhihu.com/p/163391805