"python setup.py egg_info" failed

来源:17-11 centos7 下通过uwsgi,nginx部署django应用

慕码人8463531

2020-06-18

服务器安装虚拟环境时候,报错: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. 有这种情况的吗?

写回答

1回答

慕码人8463531

提问者

2020-06-18

[root@izbp1h1cr4n27co4k0quuuz /]# pip3 install virtualenvwrapper

Looking in indexes: http://mirrors.aliyun.com/pypi/simple/

Collecting virtualenvwrapper

  Downloading http://mirrors.aliyun.com/pypi/packages/c1/6b/2f05d73b2d2f2410b48b90d3783a0034c26afa534a4a95ad5f1178d61191/virtualenvwrapper-4.8.4.tar.gz (334 kB)

     |████████████████████████████████| 334 kB 2.3 MB/s 

    ERROR: Command errored out with exit status 1:

     command: /usr/local/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-vkwlly7m/virtualenvwrapper/setup.py'"'"'; __file__='"'"'/tmp/pip-install-vkwlly7m/virtualenvwrapper/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-pip-egg-info-d_nfeq5t

         cwd: /tmp/pip-install-vkwlly7m/virtualenvwrapper/

    Complete output (34 lines):

    WARNING: The wheel package is not available.

    WARNING: The repository located at mirrors.aliyun.com 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 mirrors.aliyun.com'.

    ERROR: Could not find a version that satisfies the requirement pbr (from versions: none)

    ERROR: No matching distribution found for pbr

    Traceback (most recent call last):

      File "/usr/local/lib/python3.7/site-packages/setuptools/installer.py", line 128, in fetch_build_egg

        subprocess.check_call(cmd)

      File "/usr/local/lib/python3.7/subprocess.py", line 347, in check_call

        raise CalledProcessError(retcode, cmd)

    subprocess.CalledProcessError: Command '['/usr/local/bin/python3.7', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp8623ezar', '--quiet', '--index-url', 'http://mirrors.aliyun.com/pypi/simple/', 'pbr']' returned non-zero exit status 1.

    

    During handling of the above exception, another exception occurred:

    

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "/tmp/pip-install-vkwlly7m/virtualenvwrapper/setup.py", line 7, in <module>

        pbr=True,

      File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 160, in setup

        _install_setup_requires(attrs)

      File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 155, in _install_setup_requires

        dist.fetch_build_eggs(dist.setup_requires)

      File "/usr/local/lib/python3.7/site-packages/setuptools/dist.py", line 698, in fetch_build_eggs

        replace_conflicting=True,

      File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 782, in resolve

        replace_conflicting=replace_conflicting

      File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1065, in best_match

        return self.obtain(req, installer)

      File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1077, in obtain

        return installer(requirement)

      File "/usr/local/lib/python3.7/site-packages/setuptools/dist.py", line 754, in fetch_build_egg

        return fetch_build_egg(self, req)

      File "/usr/local/lib/python3.7/site-packages/setuptools/installer.py", line 130, in fetch_build_egg

        raise DistutilsError(str(e))

    distutils.errors.DistutilsError: Command '['/usr/local/bin/python3.7', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp8623ezar', '--quiet', '--index-url', 'http://mirrors.aliyun.com/pypi/simple/', 'pbr']' 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.


0
1
bobby
pip3 install virtualenvwrapper -i https://pypi.douban.com/simple 试试这样
2020-06-19
共1条回复

Django+ xadmin 开发在线教育网站

一套通用的技术组合拳,助你解决大部分Python类网站后端问题

1911 学习 · 2149 问题

查看课程