國內軟體映象源以及使用方法【持續更新】
阿新 • • 發佈:2019-02-12
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