首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试安装时出现“获取生成轮子的要求...错误”--可编辑

尝试安装时出现“获取生成轮子的要求...错误”--可编辑
EN

Stack Overflow用户
提问于 2020-08-16 16:44:23
回答 1查看 8K关注 0票数 2

我正在运行:

代码语言:javascript
复制
pip install --editable .

并获取以下内容:

代码语言:javascript
复制
Obtaining file:///content/nlp_tokenization_project
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpkhbslig1 Check the logs for full command output.

我确保我有Wheel包:

代码语言:javascript
复制
Requirement already satisfied: wheel in /usr/local/lib/python3.6/dist-packages (0.35.1)

我该如何解决这个问题呢?

EN

回答 1

Stack Overflow用户

发布于 2020-12-10 23:25:50

当我尝试将本地包安装到项目的虚拟环境中时,我也遇到了同样的问题:

代码语言:javascript
复制
ERROR: Command errored out with exit status 1: 
.venv/bin/python .venv/share/python-wheels/pep517-0.7.0-py2.py3-none-any.whl
/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp25qfke7j 

解决方案是简单地删除有问题的pep517轮子:

代码语言:javascript
复制
rm .venv/share/python-wheels/pep517-0.7.0-py2.py3-none-any.whl

在再次运行pip install -e .之后,自动获得了构建需求,并且一切工作正常。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63434873

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档