使用pip install 安装python第三方库时出现了如下错误:
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.

原因分析:

使用pip下载python第三方库时,由于国内网络的限制,下载速度缓慢,而超过一定时长时,就默认下载失败。

解决方法:

1:延长超时时间

pip3 install --default-timeout=1000 "包的名称"

2:更改下载源

由于默认的国外下载源下载速度十分缓慢,所以可以选择国内的几个比较好的镜像

阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/
豆瓣 http://pypi.doubanio.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

使用命令:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 库名

最新文章

  1. Msql:Incorrect double value: ''for column 'id' at row 1解决
  2. idhttp的用法
  3. javascript基础知识复习一
  4. 写一个iOS VoIP应用需要知道什么?
  5. input输入框的各种样式
  6. 常用的JQuery数字类型验证正则表达式
  7. Grunt构建工具能做哪些事?
  8. PHP无锁内存nosql---Yac的实战
  9. Android Gradle 指定 Module 打包
  10. goroutine和线程区别
  11. python学习笔记2_条件循环和其他语句
  12. indexOf() 使用方法(数组去重)
  13. webpack打包二进制文件报错
  14. jsonp 跨域1
  15. linux添加计划任务
  16. No.4 selenium学习之路之iframe
  17. sql语句中处理金额,把分换算成元
  18. Spring 源码学习(3) —— 增加属性注册编辑器
  19. 【转】Elasticsearch5.0 安装问题集锦
  20. (转)Inno Setup入门(五)——添加readme文件

热门文章

  1. 《JavaScript高级程序设计》——第一章JavaScript简介
  2. Dev中配置graphcis.h
  3. MongoDB简介---MongoDB基础用法(一)
  4. 初识ABP vNext(12):模块的独立运行与托管
  5. .Net/.Net Core 的界面框架 NanUI 发布新版本啦!
  6. 浅析 AC 自动机
  7. leetcode1Minimum Depth of Binary Tree
  8. 消息队列--ActiveMQ集群部署
  9. 关于 node build/build.js 卡顿的问题
  10. 从ceph对象中提取RBD中的指定文件