今天在使用pycharm导入第三方库的时候,报了好多超时错误,还有标题中的找不到版本,应该是网络的原因,记录下解决的办法:

raise ReadTimeoutError(self._pool, None, 'Read timed out.')
pip._vendor.requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.

1.设置超时时间

pip --default-timeout=100 install -U Pillow

如果网络实在太差,把超时时间设置再大点可以解决

Could not find a version that satisfies the requirement xxxxx(from version:)   No matching distribution found for xxxx

2.使用国内镜像源来加速

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

我遇到两个错误都用这两个办法完美解决,记录分享下,以备不时之需。

最新文章

  1. 操作系统Unix、Windows、Mac OS、Linux的故事
  2. ImageView.ScaleType8种用法
  3. C#中堆和栈的区别分析
  4. [转]关于position 的 static、relative、absolute、fixed、inherit
  5. Android打包失败Proguard returned with error code 1. See console
  6. JS操作css的float属性的特殊写法
  7. FJ省队集训最终测试 T2
  8. VIN码识别对汽车行业的应用
  9. DataGridView一些常用操作
  10. 使用JSON JavaScriptSerializer进行反序列化和序列化时报错,字符的长度超出了MaxJsonLength的长度
  11. Spark算子--flatMapValues
  12. 图像变换之Census变换
  13. SpringBoot技术栈搭建个人博客【后台开发】
  14. 06mycat使用haproxy进行负载均衡
  15. python发送邮件心得体会
  16. 【java并发核心一】Semaphore 的使用思路
  17. OpenStack 网络服务 Neutron 私有网络构建(十九)
  18. [leetcode]Text Justification @ Python
  19. 【理解】 Error 10053和 Error 10054
  20. Get started with IDA and disassembly SH7058

热门文章

  1. Windows下ELK-5.4.3环境搭建
  2. Hibernate之load和get的差别
  3. 报错: Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library
  4. JavaScript学习与实践一
  5. 移动端开发者福利-免费收费api收藏
  6. vue2.0 仿手机新闻站(七)过滤器、动画效果
  7. java移位运算符详解
  8. Orcad CIS怎么批量修改字体大小
  9. USB协议[转]__总结得很好
  10. redis安装报错