我在 Windows 10 上使用命令 pip install pyinstaller
安装 PyInstaller for Python 3.7,但命令提示符给出了以下错误:
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
但没有找到。
有什么帮助吗?提前致谢。
最佳答案
我遇到了这个问题。 解决办法是
python -m pip install pip==18.1
然后就
python -m pip install -U pyinstaller
关于python - 在 Windows 10 上安装 Python 3.7 的 PyInstaller 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51921470/