V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
mobong
V2EX  ›  Python

阿里云 pip 问题求教

  •  
  •   mobong · 2019-04-08 14:25:36 +08:00 · 1957 次点击
    这是一个创建于 2061 天前的主题,其中的信息可能已经有所发展或是发生改变。

    centos 系统,原装 python2,卸了重装过,python3.6 3.7 都转了下,还是这个问题,也改了 resolveconfig,8.8.8.8

    4 条回复    2019-04-08 15:15:59 +08:00
    mobong
        1
    mobong  
    OP
       2019-04-08 14:26:25 +08:00
    [root@izuf60o0vnaqm1m7azx49yz ~]# pip3 install aiohttp
    Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
    Collecting aiohttp
    Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0x7f18cb580898>: Failed to establish a new connection: [Errno -2] Name or service not known'))': http://mirrors.aliyun.com/pypi/simple/aiohttp/
    Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0x7f18cb5803c8>: Failed to establish a new connection: [Errno -2] Name or service not known'))': http://mirrors.aliyun.com/pypi/simple/aiohttp/
    Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0x7f18cb596668>: Failed to establish a new connection: [Errno -2] Name or service not known'))': http://mirrors.aliyun.com/pypi/simple/aiohttp/
    Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0x7f18cb596710>: Failed to establish a new connection: [Errno -2] Name or service not known'))': http://mirrors.aliyun.com/pypi/simple/aiohttp/
    Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0x7f18cb5965f8>: Failed to establish a new connection: [Errno -2] Name or service not known'))': http://mirrors.aliyun.com/pypi/simple/aiohttp/
    Could not find a version that satisfies the requirement aiohttp (from versions: )
    No matching distribution found for aiohttp
    xiaoheijw
        2
    xiaoheijw  
       2019-04-08 15:08:49 +08:00
    8.8.8.8 在国内用不了的,你能 ping 通 aliyun 吗?
    mobong
        3
    mobong  
    OP
       2019-04-08 15:13:54 +08:00
    ooxxcc
        4
    ooxxcc  
       2019-04-08 15:15:59 +08:00
    Cannot connect to proxy

    你设了什么代理

    卸了重装有什么用,都不看错误提示的吗……
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3408 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 11:45 · PVG 19:45 · LAX 03:45 · JFK 06:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.