WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connec

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

最好是修改pip.conf设置,将国内某一个pypi源设置为默认源,这样就不用每次使用pip3安装包时要指定pypi源,如下所示:


[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/'

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
扎眼的阳光的头像扎眼的阳光普通用户
上一篇 2023年11月3日
下一篇 2023年11月3日

相关推荐