首页 > 解决方案 > 在 Windows 10 上为 Python 3.7 安装 PyInstaller 时出错

问题描述

我使用命令pip install pyinstaller在 Windows 10 上为 Python 3.7 安装 PyInstaller,但命令提示符给了我以下错误:

ModuleNotFoundError: No module named 'pywintypes'
...
ModuleNotFoundError: No module named 'cffi'
...
During handling of the above exception, another exception occurred:
...
SyntaxError: invalid syntax
----------------------------------------`

Command "python setup.py egg_info" failed with error code 1 in C:\Users\MUHAMM~1\AppData\Local\Temp\pip-install-6_q2lzs2\pyinstaller\

我安装了 midule cffi,然后尝试安装pywintypes但没有找到。

有什么帮助吗?提前致谢。

标签: pythonwindows-10pyinstaller

解决方案


我遇到了那个问题。解决方案是

python -m pip install pip==18.1

那么就

python -m pip install -U pyinstaller

推荐阅读