Command "python setup.py egg_info" failed with error code 1 in /tmp/..../ 在 /tmp/..../ 中,命令 "python setup.py egg_info" 失败,错误代码为 1。

10 浏览
0 Comments

Command "python setup.py egg_info" failed with error code 1 in /tmp/..../ 在 /tmp/..../ 中,命令 "python setup.py egg_info" 失败,错误代码为 1。

我在使用pip安装依赖时遇到了以下错误:

pip9.exceptions.InstallationError

在/tmp/tmpoons7qgkbuild/opencv-python/目录下,命令"python setup.py egg_info"执行失败,错误代码为1。

以下是在最新的Linux(5.4.0 x64)系统上运行命令"pipenv install opencv-python"的结果。

正在锁定[packages]的依赖项...
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: 在/tmp/tmpoons7qgkbuild/opencv-python/目录下,命令"python setup.py egg_info"执行失败,错误代码为1。

0