程序员最近都爱上了这个网站  程序员们快来瞅瞅吧!  it98k网:it98k.com

本站消息

站长简介/公众号

  出租广告位,需要合作请联系站长

+关注
已关注

分类  

暂无分类

标签  

暂无标签

日期归档  

暂无数据

centos8服务器 python3.6.8 pip3 install django-memcached==0.1.2 报错

发布于2020-03-17 20:09     阅读(1528)     评论(0)     点赞(20)     收藏(1)


pip3 install django-memcached==0.1.2 报错:

ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-6cd8tfgx/django-memcached/setup.py’"’"’; file=’"’"’/tmp/pip-install-6cd8tfgx/django-memcached/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-6cd8tfgx/django-memcached/pip-egg-info
cwd: /tmp/pip-install-6cd8tfgx/django-memcached/
Complete output (34 lines):
WARNING: The wheel package is not available.
WARNING: The repository located at mirrors.cloud.aliyuncs.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.cloud.aliyuncs.com’.
ERROR: Could not find a version that satisfies the requirement setuptools_git (from versions: none)
ERROR: No matching distribution found for setuptools_git
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/setuptools/installer.py”, line 128, in fetch_build_egg
subprocess.check_call(cmd)
File “/usr/lib64/python3.6/subprocess.py”, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[’/usr/bin/python3’, ‘-m’, ‘pip’, ‘–disable-pip-version-check’, ‘wheel’, ‘–no-deps’, ‘-w’, ‘/tmp/tmpb1g4jqko’, ‘–quiet’, ‘–index-url’, ‘http://mirrors.cloud.aliyuncs.com/pypi/simple/’, ‘setuptools_git’]’ 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-6cd8tfgx/django-memcached/setup.py", line 66, in <module>
    setup_requires=['setuptools_git'],
  File "/usr/local/lib/python3.6/site-packages/setuptools/__init__.py", line 143, in setup
    _install_setup_requires(attrs)
  File "/usr/local/lib/python3.6/site-packages/setuptools/__init__.py", line 138, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/local/lib/python3.6/site-packages/setuptools/dist.py", line 687, in fetch_build_eggs
    replace_conflicting=True,
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 783, in resolve
    replace_conflicting=replace_conflicting
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1066, in best_match
    return self.obtain(req, installer)
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1078, in obtain
    return installer(requirement)
  File "/usr/local/lib/python3.6/site-packages/setuptools/dist.py", line 743, in fetch_build_egg
    return fetch_build_egg(self, req)
  File "/usr/local/lib/python3.6/site-packages/setuptools/installer.py", line 130, in fetch_build_egg
    raise DistutilsError(str(e))
distutils.errors.DistutilsError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpb1g4jqko', '--quiet', '--index-url', 'http://mirrors.cloud.aliyuncs.com/pypi/simple/', 'setuptools_git']' 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.

解决方法:如图
1、pip3 install setuptools_git
2、pip3 install django-memcached==0.1.2

在这里插入图片描述

原文链接:https://blog.csdn.net/weixin_45552789/article/details/104884336



所属网站分类: 技术文章 > 博客

作者:坚持就是胜利

链接:https://www.pythonheidong.com/blog/article/263559/d8568b47bc39c127d16d/

来源:python黑洞网

任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任

20 0
收藏该文
已收藏

评论内容:(最多支持255个字符)