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/'
文章出处登录后可见!
已经登录?立即刷新