Hg's Blog

学习 分享 进步

0%

创意来源:地霊殿

捡了一些自己常用的设置放在这里方便查看~

Github 换源

1
git config --global url."https://ghproxy.com/https://github.com/".insteadOf "https://github.com/"

Anaconda 换源

编辑 .condarc 文件,换北外源:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
- https://mirrors.bfsu.edu.cn/anaconda/pkgs/r
- https://mirrors.bfsu.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.bfsu.edu.cn/anaconda/cloud
msys2: https://mirrors.bfsu.edu.cn/anaconda/cloud
bioconda: https://mirrors.bfsu.edu.cn/anaconda/cloud
menpo: https://mirrors.bfsu.edu.cn/anaconda/cloud
pytorch: https://mirrors.bfsu.edu.cn/anaconda/cloud
pytorch-lts: https://mirrors.bfsu.edu.cn/anaconda/cloud
simpleitk: https://mirrors.bfsu.edu.cn/anaconda/cloud

再用 conda clean -i 清理缓存即可

Pypi 换源

1
2
python -m pip install -i https://mirrors.bfsu.edu.cn/pypi/web/simple --upgrade pip
pip config set global.index-url https://mirrors.bfsu.edu.cn/pypi/web/simple

Docker 换源

编辑 /etc/docker/daemon.json 文件,换源:

镜像加速器 镜像加速器地址
Docker 中国官方镜像 https://registry.docker-cn.com
DaoCloud 镜像站 http://f1361db2.m.daocloud.io
Azure 中国镜像 https://dockerhub.azk8s.cn
科大镜像站 https://docker.mirrors.ustc.edu.cn
阿里云 https://ud6340vz.mirror.aliyuncs.com
七牛云 https://reg-mirror.qiniu.com
网易云 https://hub-mirror.c.163.com
腾讯云 https://mirror.ccs.tencentyun.com

待更新 …