pip安装模块报错"...._vendor\urllib3\response.py", line 425, in _error_catcher....."的解决办法

今天安装matplotlib时,报了错:

其第一条错误是"...._vendor\urllib3\response.py", line 425, in _error_catcher....."

解决办法参考了https://www.cnblogs.com/shenpings1314/p/9413646.html

我们直接用命令:pip install 库名,因网络太慢,导致下载超时~~~


针对在安装Python库出现的超时问题---总结了如下两种解决方案:


其一:
pip --default-timeout=100 install -U 库名
例如:
pip --default-timeout=100 install -U numpy

其二:

包源镜像:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 库名
例如:

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

在实际操作中,我采用命令:

python -m pip --default-timeout=100 install -U matplotlib

问题解决。

发布了148 篇原创文章 · 获赞 46 · 访问量 28万+

猜你喜欢

转载自blog.csdn.net/liji_digital/article/details/104200319