安装Python之后 安装库报错 There was an error checking the latest version of pip.

报错代码 & 图片如下 

Looking in indexes: https://pypi.tuna.tsicmdnghua.edu.cn/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000026FC825CB50>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/arrow/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000026FC825F250>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/arrow/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000026FC8268F50>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/arrow/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000026FC8269BD0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/arrow/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000026FC826A810>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/arrow/
ERROR: Could not find a version that satisfies the requirement arrow (from versions: none)
ERROR: No matching distribution found for arrow
WARNING: There was an error checking the latest version of pip.

解决方案

前往路径 C:\Users\Administrator\AppData\Roaming\pip

找到 pip.ini 若没有此文件  可以自行新建一个(我是有这个文件的 这个是它最初的摸样)

 

我们改一下 改成下面这样 保存关闭  再次运行就好了

可复制代码如下: 

[global]
index-url = http://mirrors.aliyun.com/pypi/simple
trusted-host = mirrors.aliyun.com

拓展内容(没兴趣可忽略不看)

我们刚刚改的内容  index-url = http://mirrors.aliyun.com/pypi/simple 这一句

实际上是用的阿里云的镜像站  若需其他的站点 可以替换为下面任意自己喜欢的

阿里云 http://mirrors.aliyun.com/pypi/simple
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple
豆瓣(douban) http://pypi.douban.com/simple
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值