设置镜像地址,信任地址
pip3 config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple/
pip3 config set install.trusted-host mirrors.cloud.tencent.com
pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/
pip3 config set install.trusted-host mirrors.aliyun.com
pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/
pip3 config set install.trusted-host pypi.tuna.tsinghua.edu.cn
本文介绍了如何通过pip3config设置pip的全局镜像地址和信任主机,以提高包管理器的下载速度,如使用腾讯云、阿里云和清华大学的PyPI镜像。
4万+





