国内软件镜像源以及使用方法【持续更新】

docker


镜像

配置文件

加入以下内容

{
    "registry-mirrors": ["https://registry.docker-cn.com"]
}

文件位置

Linux

vi /etc/docker/daemon.json

pip


镜像

临时使用

可以在使用pip的时候加参数 -i https://pypi.tuna.tsinghua.edu.cn/simple

例如

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple gevent

配置文件

加入以下内容

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

文件位置

Linux

修改/创建 pip.conf文件

 ~/.pip/pip.conf

Windows

修改/创建 pip.conf文件

C:\Users\xx\pip\pip.conf

猜你喜欢

转载自blog.csdn.net/qq_30988089/article/details/79035427