WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(hos
t=‘pypi.org’, port=443): Read timed out. (read timeout=15)”)’: /s文章来源:https://www.toymoban.com/news/detail-726056.html
最好是修改pip.conf设置,将国内某一个pypi源设置为默认源,这样就不用每次使用pip3安装包时要指定pypi源,如下所示:文章来源地址https://www.toymoban.com/news/detail-726056.html
[root@~]# pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/
Writing to /root/.config/pip/pip.conf
[root@~]# pip3 config list
global.index-url='https://mirrors.aliyun.com/pypi/simple/'
到了这里,关于WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connec的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!