python - 在 Windows 10 上安装 Python 3.7 的 PyInstaller 时出错

标签 python windows-10 pyinstaller

我在 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/

相关文章:

bash - 如何为 Emacs mingw32 for Windows 运行 Windows 10 的 bash?

python - 使用 pyinstaller 编译 celery worker

python - 关于 Python 可执行文件中缺少 GTK 图标的警告

Python 子进程 git checkout 返回错误,即使没有错误

logging - 有没有办法快速清除MarkLogic中的服务器错误日志?

python - 多个类别的出现顺序

winapi - 我可以获取之前选择的选项卡索引吗

python - Python 3.6.6 上模块 sys 没有 _MEIPASS 成员错误

python - 多输出分类器/学习 5 个目标变量

python - 计算数据帧组内的差异