尝试安装时“获取生成控制盘的要求…错误”

2024-07-06 19:50:12 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在跑步:

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.

我确保我有车轮套件:

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

我怎样才能解决这个问题


Tags: installpipinbuild信息forlibpackages
1条回答
网友
1楼 · 发布于 2024-07-06 19:50:12

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

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 .之后,构建需求会自动获得,一切都很顺利

相关问题 更多 >