报错代码 & 图片如下
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
文章讲述了在尝试安装Python库arrow时遇到的连接错误,问题源于无法成功连接到指定的pypi源。解决方案是修改pip配置文件pip.ini,将index-url改为阿里云或其他可选的镜像站地址,从而解决因网络问题导致的安装失败。
2310

被折叠的 条评论
为什么被折叠?



