使用pip安装第三方库报错记录
2024-08-28 09:56:58
今天在使用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
我遇到两个错误都用这两个办法完美解决,记录分享下,以备不时之需。
最新文章
- 操作系统Unix、Windows、Mac OS、Linux的故事
- ImageView.ScaleType8种用法
- C#中堆和栈的区别分析
- [转]关于position 的 static、relative、absolute、fixed、inherit
- Android打包失败Proguard returned with error code 1. See console
- JS操作css的float属性的特殊写法
- FJ省队集训最终测试 T2
- VIN码识别对汽车行业的应用
- DataGridView一些常用操作
- 使用JSON JavaScriptSerializer进行反序列化和序列化时报错,字符的长度超出了MaxJsonLength的长度
- Spark算子--flatMapValues
- 图像变换之Census变换
- SpringBoot技术栈搭建个人博客【后台开发】
- 06mycat使用haproxy进行负载均衡
- python发送邮件心得体会
- 【java并发核心一】Semaphore 的使用思路
- OpenStack 网络服务 Neutron 私有网络构建(十九)
- [leetcode]Text Justification @ Python
- 【理解】 Error 10053和 Error 10054
- Get started with IDA and disassembly SH7058
热门文章
- Windows下ELK-5.4.3环境搭建
- Hibernate之load和get的差别
- 报错: Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library
- JavaScript学习与实践一
- 移动端开发者福利-免费收费api收藏
- vue2.0 仿手机新闻站(七)过滤器、动画效果
- java移位运算符详解
- Orcad CIS怎么批量修改字体大小
- USB协议[转]__总结得很好
- redis安装报错