0. 首先安装 pyinstaller
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz
1. 再执行
pyinstaller -F -w xxx.py
2. 查看结果
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz
pyinstaller -F -w xxx.py