python - 无法为使用 PEP 517 且无法直接安装的 _ 构建轮子 - 简单的解决方案

标签 python python-3.x pip virtualenv pep517

我正在尝试安装一个使用 PEP 517 的软件包。由于涉及 517 的车轮构建错误,最新版本的 Pip 不允许我安装。
过去,我通过降级 Pip、安装软件包并将 Pip 升级回最新版本来解决此问题。但是,在我的 virtualenv 中降级 pip 后,如果我尝试运行“Pip install black”,我会收到 No module named 'pip._internal.cli.main' 错误。
我该如何解决这个问题?

最佳答案

处理错误的最简单方法

"Could not build wheels for ____ which use PEP 517 and cannot be installed directly" 
如下:
sudo pip3 install _____ --no-binary :all:
其中____显然是您要安装的库的名称。

关于python - 无法为使用 PEP 517 且无法直接安装的 _ 构建轮子 - 简单的解决方案,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64038673/

相关文章:

python - 根据某些属性的总和对 python 中的对象列表进行排序

python - 如何将属性设置为 SQLAlchemy 结果中的特定列?

python - 如何从用户输入的 float 中删除一组字符 - Python

python - 重新采样时间序列并显示一天中的时间

python - 如何找到集合 A 的所有子集组?在 Python 中设置分区

python - pip 10.0.0 版本中是否有 pip.get_installed_distributions() 的功能替代?

python - 在同一环境中使用 conda 和 pip install 是一个坏主意吗?

python - 如何在 Tkinter Python 中制作点击按钮?

python - OSError : Could not find geos_c. dll 或加载其任何变体

python - 装饰所有继承的方法