我正在运行:
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)我该如何解决这个问题呢?
发布于 2020-12-10 23:25:50
当我尝试将本地包安装到项目的虚拟环境中时,我也遇到了同样的问题:
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 .之后,自动获得了构建需求,并且一切工作正常。
https://stackoverflow.com/questions/63434873
复制相似问题