python - 尝试安装时“获取构建轮子的要求...错误”--editable
问题描述
我在跑步:
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)
我怎样才能解决这个问题?
解决方案
当我尝试将本地包安装到项目的虚拟环境中时,我遇到了同样的问题:
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 .
后,自动获取构建要求,一切正常。
推荐阅读
- python - 从 HTML 表中抓取每一行
- arrays - 在 JS 中,我如何编写一个带有两个参数(数组、元素)的函数来将元素转换为新数组?
- c# - 如何在模型中对 SelectList 进行硬编码?
- java - 如何添加到存储在 BeanMap 中的列表?
- tensorflow - 如何从冻结图生成配置文件
- python - 过滤数据集中的多个分配
- r - 如何从服务器/用户界面外部访问存储在 server.R 中的数据
- html - 如何使焦点属性保持不变,直到我单击另一个按钮
- angular6 - 如何在 ng-select 中搜索多个字段?
- flutter - 快照错误类型“int”不是“String”类型的子类型