【问题标题】:"Getting requirements to build wheel ... error" when trying install --editable尝试安装时“获取构建轮子的要求...错误”--editable
【发布时间】:2020-08-16 08:44:23
【问题描述】:

我正在跑步:

pip install --editable .

并获得以下信息:

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 包:

Requirement already satisfied: wheel in /usr/local/lib/python3.6/dist-packages (0.35.1)

我该如何解决这个问题?

【问题讨论】:

  • 你可以试试pip install -e
  • 请显示完整的错误日志。
  • 我很乐意,我该怎么做?我正在使用谷歌 colab。

标签: python pip python-wheel


【解决方案1】:

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

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 轮:

rm .venv/share/python-wheels/pep517-0.7.0-py2.py3-none-any.whl

再次运行pip install -e .后,自动获取构建需求,一切正常。

【讨论】:

    猜你喜欢
    • 2022-08-20
    • 1970-01-01
    • 2021-01-09
    • 2022-10-24
    • 2016-04-04
    • 1970-01-01
    • 2021-01-28
    • 2014-05-15
    • 2017-05-16
    相关资源
    最近更新 更多