问题:

安装包出现Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError

这是由于pip访问国外镜像源的问题,将源转为国内源即可

只需按照以下步骤即可解决

pip install selectivesearch -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

其他源总结:

国内的pip源,如下:

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

使用方法很简单,直接 -i 加 url 即可!如下:

pip install web.py - i http://pypi.douban.com/simple

若是出现以下错误

The respository located at pypi.douban.com is not a trusted or secure host and is being ignored.If this repository is avaiable via HTTPS
it is recommended to use HTTPS instead,otherwise you may silence this warning and allow it anyways with "--trusted-host pypi.douban.com"
Could not find a version that satisfies the satisfies the requirement web,py

解决方式

pip install web.py -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

直接修改配置文件

1. 在路径C:\Users\{用户名}\下建立pip文件夹,然后新建pip.ini文件
    打开文件,将以下内容复制到其中

[global]
    index-url = https://pypi.tuna.tsinghua.edu.cn/simple
    [install]
    trusted-host=pypi.tuna.tsinghua.edu.cn

当然centos和windows上的详细配置可以看这里

pip配置国内镜像_可大侠的博客-CSDN博客

python中安装包出现Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))…………相关推荐

  1. [Python系列-23]:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)

    作者主页(文火冰糖的硅基工坊):文火冰糖(王文兵)的博客_文火冰糖的硅基工坊_CSDN博客 本文网址:[Python系列-23]:WARNING: Retrying (Retry(total=4, c ...

  2. conda虚拟环境下使用pip安装包报错Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)

    Q1: conda虚拟环境下使用pip安装软件报错: WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, ...

  3. pip安装包时报错WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status =None))

    问题描述: 今天打算安装一下tensorflow,但是老报错:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=N ...

  4. python WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))————

    问题:在使用python时,使用pip安装matplotlib出错(pip install matplotlib),错误信息:WARNING: Retrying (Retry(total=4, con ...

  5. Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection brok

    错误log:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after ...

  6. WARNING:Retrying(Retry(total=4,connect=None,read=None,redirect=None,status =None))connect broken解决方案

      大家好,我是爱编程的喵喵.双985硕士毕业,现担任全栈工程师一职,热衷于将数据思维应用到工作与生活中.从事机器学习以及相关的前后端开发工作.曾在阿里云.科大讯飞.CCF等比赛获得多次Top名次.现 ...

  7. pip安装第三方库报错Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None))

    pip安装第三方库报错Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) pip安装第三方库时 ...

  8. 报错:WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after con

    报错内容: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after ...

  9. WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))

    WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) 决办法:pip inst ...

  10. 成功解决WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after co

    成功解决WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after co ...

最新文章

  1. android之利用SQLite数据库实现登陆和注册
  2. Swift_类型选择
  3. 【数据结构】二分查找
  4. 第一章 动态规划【未完结】
  5. Java:控制台输入车辆信息,将信息保存至数据库中
  6. js正则表达式匹配span标签
  7. php 递归格式化数组,利用php递归实现无限分类 格式化数组的详解
  8. ng机器学习视频笔记(十三) ——异常检测与高斯密度估计
  9. 防备电脑死机故障技巧的8个方法
  10. 用C++完成三国杀(无GUI)
  11. 计算机wps函数的使用,职称计算机考试WPS 使用技巧
  12. RNA editing restricts hyperactive ciliary kinases文章翻译
  13. 传奇私服架设入门教程分享
  14. IM开发干货分享:网易云信IM客户端的聊天消息全文检索技术实践
  15. 【电力电子】【2015】基于输出总谐波失真的三种逆变器的比较研究
  16. mtl文件的简要说明
  17. PEP8风格是什么?
  18. 已经一点经纬度和距离,计算另一点的经纬度
  19. zxing换行_微博换行功能最新资讯
  20. 数据说话:现在是牛市还是熊市?

热门文章

  1. 迪杰斯特拉算法dijkstra(可打印最短路径)
  2. adobe Director的一些快捷键(direct_Shortcut)
  3. ZeroC Ice demo构建(继承Ice::Application类)
  4. angular访问后台服务及监控会话超时的封装实现
  5. 51nod 1277 字符串中的最大值(KMP算法)
  6. PHP-Header缓存策略
  7. SGU 326 Perspective
  8. 豆瓣评分9.2,GitHub 3.3k的学霸笔记终于出书了!获得李宏毅等大佬好评 -- 文末送书...
  9. numpy-np.isin
  10. 深度学习2.0-12.神经网络与全连接层之数据集的加载