全局设置:
pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple pip3 config set install.trusted-host https://pypi.tuna.aliyun.com/pypi/simple python3 -m pip install pip -U
查看配置:
# pip3 config list global.index-url='https://mirrors.aliyun.com/pypi/simple' install.trusted-host='https://pypi.tuna.aliyun.com/pypi/simple'
参考: