python中使用pip安装插件报错:read time out的解决方法

报错:

raise ReadTimeoutError(self._pool, None, 'Read timed out.')

ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

原因:有网速,但是特别慢!

解决方法:

(1)加时间

pip install -U --timeout 1000 matplotlib

(2)换成清华的镜像源

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

--------------------- 作者:gelinggeling88 来源:CSDN 原文:https://blog.csdn.net/gelinggeling88/article/details/81535683?utm_source=copy 版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自blog.csdn.net/ifreewolf_csdn/article/details/82988179
今日推荐