python中pip下载库时报错--解决方法

python pip 下载库时报错

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

 解决方法

pip --default-timeout=100 install matplotlib(库名称) -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com 

猜你喜欢

转载自blog.csdn.net/bb8886/article/details/131939401