gpt4 book ai didi

python - 在/tmp/pip-build-rnhk49o3/opencv-python/中,命令 "python setup.py egg_info"失败,错误代码为1

转载 作者:行者123 更新时间:2023-12-02 16:07:32 28 4
gpt4 key购买 nike

pip9.exceptions.InstallationError
Command "python setup.py egg_info" failed with error code 1 in /tmp/tmpoons7qgkbuild/opencv-python/
是在最新的linux(5.4.0 x64)系统上运行 pipenv install opencv-python命令的结果。
Locking [packages] dependencies…
self.repository.get_dependencies(ireq):
File "/usr/lib/python3/dist-packages/pipenv/patched/piptools/repositories/pypi.py", line 174, in get_dependencies
legacy_results = self.get_legacy_dependencies(ireq)
File "/usr/lib/python3/dist-packages/pipenv/patched/piptools/repositories/pypi.py", line 222, in get_legacy_dependencies
result = reqset._prepare_file(self.finder, ireq, ignore_requires_python=True)
File "/usr/lib/python3/dist-packages/pipenv/patched/notpip/req/req_set.py", line 644, in _prepare_file
abstract_dist.prep_for_dist()
File "/usr/lib/python3/dist-packages/pipenv/patched/notpip/req/req_set.py", line 134, in prep_for_dist
self.req_to_install.run_egg_info()
File "/usr/lib/python3/dist-packages/pipenv/vendor/pip9/req/req_install.py", line 435, in run_egg_info
call_subprocess(
File "/usr/lib/python3/dist-packages/pipenv/vendor/pip9/utils/__init__.py", line 705, in call_subprocess
raise InstallationError(
pip9.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/tmpoons7qgkbuild/opencv-python/

最佳答案

如何修复pip9.exceptions.InstallationError确保pipsetuptools的版本足以满足manylinux2014 wheels的要求。

sudo python3 -m pip install -U pip
sudo python3 -m pip install -U setuptools
解释
对我来说, python setup.py egg_info可能由于python轮子最近的变化而失败,因为 manylinux1 wheels根据 open-cv faq替换了 manylinux2014 wheels

关于python - 在/tmp/pip-build-rnhk49o3/opencv-python/中,命令 "python setup.py egg_info"失败,错误代码为1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64095094/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com