ReadTimeout的解决办法
在安装第三方库的时候,Python报错pip._vendor.urllib3.exceptions.ReadTimeoutError一般是网络延迟 超时导致的。
解决方法如下:
输入指令改为:
pip --default-timeout=100 install 库名称 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
如果上面那个豆瓣依然不快,可以换成下面的国内镜像网站。
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/