python - 在 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
但没有找到。
有什么帮助吗?提前致谢。
解决方案
我遇到了那个问题。解决方案是
python -m pip install pip==18.1
那么就
python -m pip install -U pyinstaller
推荐阅读
- python - 如何在 kubernetes-client-python 中减少 kubernetes 集群的重试次数
- c# - 源文件与构建的源文件不同 - 在完全独立的目录中查找?
- postgresql - 如何在 psql 客户端中创建表?
- autodesk-forge - Autodesk Forge 中的数据从一个帐户转移到另一个帐户
- java - 线程池最大线程数不正确
- android - Android AOSP 汽车模拟器
- c# - 动态使用指令
- javascript - 根据数组输入过滤对象数组
- jquery - 如果达到一定数量,则换行中的文本框
- python - 通过 self 值更改 tkinter 中按钮的状态