无法为使用 PEP 517 且无法直接安装的 _ 构建轮子 - 简单的解决方案 [英] Could not build wheels for _ which use PEP 517 and cannot be installed directly - Easy Solution

查看:50
本文介绍了无法为使用 PEP 517 且无法直接安装的 _ 构建轮子 - 简单的解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装一个使用 PEP 517 的软件包.由于涉及 517 的车轮构建错误,最新版本的 Pip 不允许我安装.

I am trying to install a package which uses PEP 517. The newest version of Pip won't allow me to install due to an error involving wheel building for 517.

过去,我通过降级 Pip、安装软件包并将 Pip 升级回最新版本来解决此问题.但是,在我的 virtualenv 中降级 pip 后,如果我尝试运行Pip install black",我会收到 No module named 'pip._internal.cli.main' 错误.

In the past, I've solved this issue by downgrading Pip, installing the package and Upgrading Pip back to the latest version. However, after I downgrade pip in my virtualenv, if I try to run 'Pip install black' I get the No module named 'pip._internal.cli.main' error.

我该如何解决这个问题?

How can I solve this?

推荐答案

最简单的错误处理方法

"Could not build wheels for ____ which use PEP 517 and cannot be installed directly" 

如下:

sudo pip3 install _____ --no-binary :all:

其中____显然是您要安装的库的名称.

Where ____ is obviously the name of the library you want to install.

这篇关于无法为使用 PEP 517 且无法直接安装的 _ 构建轮子 - 简单的解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆