当前位置: 首页 > news >正文

安装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

http://www.lryc.cn/news/98696.html

相关文章:

  • "科技与狠活"企业级无代码开发MES系统,一周实现数字化
  • 超实用的品牌软文推广方案分享,纯干货
  • 网络安全(黑客)8大工具
  • 重启Linux服务器 Oracle 数据库步骤
  • kaggle新赛:Bengali.AI 语音识别大赛赛题解析
  • 解放Linux内存:释放缓存(linux释放缓存)
  • 前端跨域解决方案
  • 脚手架(vue-cli)的安装详细教程
  • yolov5 onnx模型 转为 rknn模型
  • Mybatis-Flex
  • C++ | 红黑树以及map与set的封装
  • 逻辑斯特回归
  • OpenCV 算法解析
  • springboot创建并配置环境(一) - 创建环境
  • 2023JAVA 架构师面试 130 题含答案:JVM+spring+ 分布式 + 并发编程》...
  • layui手机端上传文件时返回404 Not Found的解决方案(client_body_temp权限设置)
  • 网络编程知识
  • 线性神经网路——线性回归随笔【深度学习】【PyTorch】【d2l】
  • js实现多种按钮
  • getopt函数(未更新完)
  • SpringCloud学习路线(9)——服务异步通讯RabbitMQ
  • postcss-pxtorem适配插件动态配置rootValue(根据文件路径名称,动态改变vue.config里配置的值)
  • 代码随想录算法训练营第二十三天 | 额外题目系列
  • UiAutomator
  • stm32标准库开发常用函数的使用和代码说明
  • 有关合泰BA45F5260中断的思考
  • Numpy-算数函数与数学函数
  • Nginx在springboot中起到的作用
  • 12.(开发工具篇vscode+git)vscode 不能识别npm命令
  • 如何在MacBook上彻底删除mysql