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 listglobal.index-url='https://mirrors.aliyun.com/pypi/simple/'
来源地址:https://blog.csdn.net/weixin_43707560/article/details/129960901