(python pip安装第三方库超时问题raise ReadTimeoutErrorself._pool, None, 'Read timed out.')

(python pip安装第三方库超时问题(raise ReadTimeoutErrorself._pool,None,‘Read timed out.’)
pip工具安装
百度经验链接: pip安装及环境变量配置.

pip下载超时处理
aise ReadTimeoutError(self._pool,‘Read timed out.’)

方案一:对于比较小的库,可以延时处理
-------- pip --default-timeout=100 install -U pip
-------- pip --default-timeout=100 install 第三方库名
方案二:更换安装源
------------网上可以查找很多豆瓣源
https://pypi.tuna.tsinghua.edu.cn/simple/
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyecharts
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 库名
出错使用这种 :pip install --index-url https://pypi.tuna.tsinghua.edu.cn/simple/ lightgbm

方案三:下载离线包
python所有库:(https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml)
---------然后通过pip install 保存路径/加上下载的文件名 进行安装
(如pip install C:\Users\HP\Desktop\scikit_image-0.14.1-cp37-cp37m-win32.whl)

 

 


原文链接:https://blog.csdn.net/qq_40925385/article/details/83753598

相关文章

Python中的函数(二) 在上一篇文章中提到了Python中函数的定...
Python中的字符串 可能大多数人在学习C语言的时候,最先接触...
Python 面向对象编程(一) 虽然Python是解释性语言,但是它...
Python面向对象编程(二) 在前面一篇文章中谈到了类的基本定...
Python中的函数(一) 接触过C语言的朋友对函数这个词肯定非...
在windows下如何快速搭建web.py开发框架 用Python进行web开发...