ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full

我发现自己的Debug能力还是不行,特别是环境上的一些问题,以后一定要把错误的内容通读!!!!!通读!!!!!
我现在是在安装mmcv,像这里的错误,核心内容是一个WARNING和两个ERROR,WARNING的内容一般是不重要的,然后看看ERROR,大概就是pytest-runner的版本找不到,尝试安装一波:

pip install --user pytest-runner

就好了,这错误我找了一天。。。。一直在搜索后面的ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output,以为是setuptools的问题,太菜了太菜了。

pip install --user mmcv  --trusted-host yum.tbsite.net
Looking in indexes: http://yum.tbsite.net/pypi/simple/
Collecting mmcv
  Downloading http://yum.tbsite.net/pypi/packages/26/fa/f032c1e0095b4dfac42feae2f4e8ad77dd3ad83257cb5269814c583ac34c/mmcv-0.2.14.tar.gz (48kB)
     |████████████████████████████████| 51kB 19.6MB/s
    ERROR: Command errored out with exit status 1:
     command: /opt/conda/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-td71coct/mmcv/setup.py'"'"'; __file__='"'"'/tmp/pip-install-td71coct/mmcv/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-td71coct/mmcv/pip-egg-info
         cwd: /tmp/pip-install-td71coct/mmcv/
    Complete output (33 lines):
    WARNING: The repository located at yum.tbsite.net is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host yum.tbsite.net'.
    ERROR: Could not find a version that satisfies the requirement pytest-runner (from versions: none)
    ERROR: No matching distribution found for pytest-runner
    Traceback (most recent call last):
      File "/home/admin/.local/lib/python3.6/site-packages/setuptools/installer.py", line 119, in fetch_build_egg
        subprocess.check_call(cmd)
      File "/opt/conda/lib/python3.6/subprocess.py", line 291, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/opt/conda/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp8ffnblrb', '--quiet', '--index-url', 'http://yum.tbsite.net/pypi/simple', 'pytest-runner']' returned non-zero exit status 1.

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "", line 1, in 
      File "/tmp/pip-install-td71coct/mmcv/setup.py", line 83, in 
        zip_safe=False)
      File "/home/admin/.local/lib/python3.6/site-packages/setuptools/__init__.py", line 144, in setup
        _install_setup_requires(attrs)
      File "/home/admin/.local/lib/python3.6/site-packages/setuptools/__init__.py", line 139, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "/home/admin/.local/lib/python3.6/site-packages/setuptools/dist.py", line 721, in fetch_build_eggs
        replace_conflicting=True,
      File "/home/admin/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 782, in resolve
        replace_conflicting=replace_conflicting
      File "/home/admin/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1065, inbest_match
        return self.obtain(req, installer)
      File "/home/admin/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1077, inobtain
        return installer(requirement)
      File "/home/admin/.local/lib/python3.6/site-packages/setuptools/dist.py", line 777, in fetch_build_egg
        return fetch_build_egg(self, req)
      File "/home/admin/.local/lib/python3.6/site-packages/setuptools/installer.py", line 121, in fetch_build_egg
        raise DistutilsError(str(e))
    distutils.errors.DistutilsError: Command '['/opt/conda/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp8ffnblrb', '--quiet', '--index-url', 'http://yum.tbsite.net/pypi/simple', 'pytest-runner']' returned non-zero exit status 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output

你可能感兴趣的:(深度学习,python基础)