Python pip安装连接错误

Python pip安装连接错误,python,pip,Python,Pip,我正在尝试使用pip安装一个名为gmplot的库。这在我的Mac电脑上运行得很好,但在我的Windows 10电脑上却不行。我得到以下错误: C:\Users\Alex>pip install gmplot Collecting gmplot Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._

我正在尝试使用pip安装一个名为gmplot的库。这在我的Mac电脑上运行得很好,但在我的Windows 10电脑上却不行。我得到以下错误:

C:\Users\Alex>pip install gmplot
Collecting gmplot
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000003BD70B8>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed',)': /simple/gmplot/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000003BD7A58>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed',)': /simple/gmplot/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000003BD7DA0>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed',)': /simple/gmplot/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000003BD75C0>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed',)': /simple/gmplot/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000003BD7D30>: Failed to establish a new connection: [Errno 11003] getaddrinfo failed',)': /simple/gmplot/
  Could not find a version that satisfies the requirement gmplot (from versions: )
No matching distribution found for gmplot
C:\Users\Alex>pip安装gmplot
收集gmplot
“NewConnectionError(':未能建立新连接:[Errno 11003]getaddrinfo Failed',)”:/simple/gmplot在连接被“NewConnectionError(':未能建立新连接,”)中断后重试(重试(总计=4,连接=None,读取=None,重定向=None))/
“NewConnectionError(':无法建立新连接:[Errno 11003]getaddrinfo Failed',)”:/simple/gmplot在连接被“NewConnectionError(':无法建立新连接,”)中断后重试(重试(总计=3,连接=None,读取=None,重定向=None))/
“NewConnectionError(':未能建立新连接:[Errno 11003]getaddrinfo Failed',)”:/simple/gmplot在连接被“NewConnectionError(':未能建立新连接,”)中断后重试(重试(总计=2,连接=None,读取=None,重定向=None))/
“NewConnectionError(':未能建立新连接:[Errno 11003]getaddrinfo Failed',)”:/simple/gmplot在连接被“NewConnectionError(':未能建立新连接,”)中断后重试(重试(总计=1,连接=None,读取=None,重定向=None))/
“NewConnectionError(':未能建立新连接:[Errno 11003]getaddrinfo Failed',)”:/simple/gmplot在连接被“NewConnectionError(':未能建立新连接,”)中断后重试(重试(总计=0,连接=None,读取=None,重定向=None))/
找不到满足gmplot要求的版本(来自版本:)
未找到gmplot的匹配分布
其他stackoverflow线程提到在pip命令中添加代理详细信息,但我不使用代理。我也把我的DNS改成了谷歌的DNS,但这不起作用


(Python 2.7)

对我来说,答案是在根目录的.bash_配置文件中设置代理。如果此文件不存在,请创建它

例:

导出http\U代理=


这是在Centos系统上完成的,该系统通过虚拟机连接到internet

为了好玩,我试了一下,效果不错。你没有写任何关于你的互联网设置的东西。解决此问题的一种方法是转到其他具有相同python版本的windows 10机器,并键入“pip download gmplot”。您可以将下载的文件移动到计算机上的一个目录,并在该目录中“pip install gmplot--no index--find links”。这就是我如何在没有互联网的机器上安装pip下载…谢谢。不知道该怎么说我的互联网设置。只需正常的家庭宽带/wifi连接,无代理,无VPN,除上述情况外,访问互联网的任何部分都不会出现问题。不幸的是,我没有另一台Windows计算机,但在最坏的情况下,我会找到一台。您可能还想将python升级到当前(3.6.1)版本,或者升级pip,然后重试……可能与;问题是存在代理设置。谢谢,但我不使用代理。我在我的设置中检查了这种情况。http_代理变量应该设置为什么?是的,但这是在虚拟机上,因此它看起来不适用于此问题。