python报错pip._vendor.urllib3.exceptions.ReadTimeoutError:解决办法

1、报错
在下载第三方库tensorflow的时候,出现错误:
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out
python报错pip._vendor.urllib3.exceptions.ReadTimeoutError:解决办法_第1张图片
2、解决办法
在pycharm的左下角处找到terminal终端,输入指令:

pip --default-timeout=100 install tensorflow -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

这条指令可以切换下载源,加速下载速度。
3、最后下载成功
python报错pip._vendor.urllib3.exceptions.ReadTimeoutError:解决办法_第2张图片

你可能感兴趣的:(python,pip,tensorflow)