conda源:
1.上海交大源:
上海交大的: https://mirrors.sjtug.sjtu.edu.cn/#/
添加上海交大源:
channels:
- https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/main/
- https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/free/
- https://mirrors.sjtug.sjtu.edu.cn/anaconda/cloud/conda-forge/
ssl_verify: true
2.清华源:
清华的: https://mirrors.tuna.tsinghua.edu.cn/
添加清华源:
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
ssl_verify: true
3.中科大源:
中科大源官网: https://mirrors.ustc.edu.cn/
添加中科大源:
channels:
- https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
- https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
- https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
ssl_verify: true
pip源
:【建议使用豆瓣或者阿里的,超级超级快】
1.豆瓣源:
[global]
index-url = https://pypi.doubanio.com/simple
trusted-host = pypi.doubanio.com
2.阿里源:
[global]
index-url = https://pypi.doubanio.com/simple
trusted-host = pypi.doubanio.com
国内其它pip源
- 清华:https://pypi.tuna.tsinghua.edu.cn/simple
- 中国科技大学:https://pypi.mirrors.ustc.edu.cn/simple/
- 华中理工大学:http://pypi.hustunique.com/
- 山东理工大学:http://pypi.sdutlinux.org/
附上笔者的conda源和pip源:【复制粘贴、刷新即可使用】
channels:
show_channel_urls: true
channel_alias: https://mirrors.tuna.tsinghua.edu.cn/anaconda
default_channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
ssl_verify: false
添加conda
源之后,conda clean -i
清除索引缓存,保证用的是镜像站提供的索引,即可使用国内清华源的conda
。
pip源:
[global]
timeout = 60
index-url = https://pypi.doubanio.com/simple
trusted-host = pypi.doubanio.com