如何解决尝试安装--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 .
后,将自动获得构建要求,并且一切正常。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。