大多数可用程序仅支持 python 版本 3.4。
您可以使用py安装程序 http://www.pyinstaller.org支持Python 3.5。
要使用 pip 安装它,请在终端中执行:pip install pyinstaller
pip install pyinstaller
要制作 .exe 文件:
pyinstaller --onefile script.py