安装matplotlib,报错:raise ReadTimeoutError

报错:

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

你可能感兴趣的:(安装matplotlib,报错:raise ReadTimeoutError)