WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) xxx的解决方法

我在下载pip包的时候遇到这个报错,报错内容是:WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/charset-normalizer/。下面分享解决方法:

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) xxx的解决方法_第1张图片

如上图,我是直接用pip install requests下载的,我更换了其他镜像源来下载,命令格式如下:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple +第三方库

更换以后,可以正常下载。如图

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) xxx的解决方法_第2张图片

你可能感兴趣的:(python,开发语言,pip)