使用 pip intall virtualenv:ProtocolError('Connection aborted.', gaierror(-3, '名称解析暂时失败')) [英] use pip intall virtualenv:ProtocolError('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))

查看:42
本文介绍了使用 pip intall virtualenv:ProtocolError('Connection aborted.', gaierror(-3, '名称解析暂时失败'))的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 pip 安装了 virtualenv,但出现此错误:

I installed virtualenv with pip, but I'm getting this error:

[root@szlnginx_proxy bin]# ./pip install virtualenv
Collecting virtualenv
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))': /simple/virtualenv/

推荐答案

我遇到了同样的问题,我能够通过向 /etc/resolv.conf 添加名称服务器"来解决它.有关名称服务器列表和有关 resolv.conf 的更多信息,您可以查看:https://wiki.archlinux.org/index.php/Resolv.conf.

I came across the same problem and I was able to resolve it by adding "nameservers" to /etc/resolv.conf. For a list of nameservers and further information on resolv.conf you can check out: https://wiki.archlinux.org/index.php/Resolv.conf.

这篇关于使用 pip intall virtualenv:ProtocolError('Connection aborted.', gaierror(-3, '名称解析暂时失败'))的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆