【主要是我每次配环境的时候找的太麻烦了】
本次换源出处很多,一下子整的不知道那里的了,如果需要带上出处跟我说一下,我补回
安装就不教学不提供安装包了
这里主要是介绍windwos
首先是创建.condarc文件
conda config --set show_channel_urls yes
然后在C盘-->用户-->【用户名】-->.condarc
可以看到这个文件,记事本打开
接下来一个一个来!!!
北京外国语大学开源软件镜像站
channels:
- defaults
show_channel_urls: true
channel_alias: https://mirrors.bfsu.edu.cn/anaconda
default_channels:
- https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
- https://mirrors.bfsu.edu.cn/anaconda/pkgs/free
- https://mirrors.bfsu.edu.cn/anaconda/pkgs/r
- https://mirrors.bfsu.edu.cn/anaconda/pkgs/pro
- 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
simpleitk: https://mirrors.bfsu.edu.cn/anaconda/cloud
上海交通大学开源软件镜像站
channels:
- defaults
show_channel_urls: true
channel_alias: https://anaconda.mirrors.sjtug.sjtu.edu.cn/
default_channels:
- https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/main
- https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/free
- https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/mro
- https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/msys2
- https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/pro
- https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/r
custom_channels:
conda-forge: https://anaconda.mirrors.sjtug.sjtu.edu.cn/conda-forge
soumith: https://anaconda.mirrors.sjtug.sjtu.edu.cn/cloud/soumith
bioconda: https://anaconda.mirrors.sjtug.sjtu.edu.cn/cloud/bioconda
menpo: https://anaconda.mirrors.sjtug.sjtu.edu.cn/cloud/menpo
viscid-hub: https://anaconda.mirrors.sjtug.sjtu.edu.cn/cloud/viscid-hub
atztogo: https://anaconda.mirrors.sjtug.sjtu.edu.cn/cloud/atztogo
阿里巴巴开源软件镜像站
channels:
- defaults
show_channel_urls: true
default_channels:
- http://mirrors.aliyun.com/anaconda/pkgs/main
- http://mirrors.aliyun.com/anaconda/pkgs/r
- http://mirrors.aliyun.com/anaconda/pkgs/msys2
custom_channels:
conda-forge: http://mirrors.aliyun.com/anaconda/cloud
msys2: http://mirrors.aliyun.com/anaconda/cloud
bioconda: http://mirrors.aliyun.com/anaconda/cloud
menpo: http://mirrors.aliyun.com/anaconda/cloud
pytorch: http://mirrors.aliyun.com/anaconda/cloud
simpleitk: http://mirrors.aliyun.com/anaconda/cloud
清华大学开源软件镜像站
channels:
- defaults
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
南京邮电大学开源软件镜像站
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.njupt.edu.cn/anaconda/pkgs/main
- https://mirrors.njupt.edu.cn/anaconda/pkgs/r
- https://mirrors.njupt.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.njupt.edu.cn/anaconda/cloud
pytorch: https://mirrors.njupt.edu.cn/anaconda/cloud
哈尔滨工业大学开源镜像站
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.hit.edu.cn/anaconda/pkgs/main
- https://mirrors.hit.edu.cn/anaconda/pkgs/r
- https://mirrors.hit.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.hit.edu.cn/anaconda/cloud
pytorch: https://mirrors.hit.edu.cn/anaconda/cloud
南京大学开源镜像站
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirror.nju.edu.cn/anaconda/pkgs/main
- https://mirror.nju.edu.cn/anaconda/pkgs/r
- https://mirror.nju.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirror.nju.edu.cn/anaconda/cloud
pytorch: https://mirror.nju.edu.cn/anaconda/cloud
北京大学开源镜像站
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.pku.edu.cn/anaconda/pkgs/main
- https://mirrors.pku.edu.cn/anaconda/pkgs/r
- https://mirrors.pku.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.pku.edu.cn/anaconda/cloud
pytorch: https://mirrors.pku.edu.cn/anaconda/cloud
重庆邮电大学开源镜像站
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.cqupt.edu.cn/anaconda/pkgs/main
- https://mirrors.cqupt.edu.cn/anaconda/pkgs/r
- https://mirrors.cqupt.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.cqupt.edu.cn/anaconda/cloud
pytorch: https://mirrors.cqupt.edu.cn/anaconda/cloud
南京工业大学开源软件镜像站
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.njtech.edu.cn/anaconda/pkgs/main
- https://mirrors.njtech.edu.cn/anaconda/pkgs/r
- https://mirrors.njtech.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.njtech.edu.cn/anaconda/cloud
pytorch: https://mirrors.njtech.edu.cn/anaconda/cloud
上海科技大学开源镜像站
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.shanghaitech.edu.cn/anaconda/pkgs/main
- https://mirrors.shanghaitech.edu.cn/anaconda/pkgs/r
- https://mirrors.shanghaitech.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.shanghaitech.edu.cn/anaconda/cloud
pytorch: https://mirrors.shanghaitech.edu.cn/anaconda/cloud
南方科技大学开源镜像站
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.sustech.edu.cn/anaconda/pkgs/main
- https://mirrors.sustech.edu.cn/anaconda/pkgs/r
- https://mirrors.sustech.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.sustech.edu.cn/anaconda/cloud
pytorch: https://mirrors.sustech.edu.cn/anaconda/cloud
浙江大学开源软件镜像站
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.zju.edu.cn/anaconda/pkgs/main
- https://mirrors.zju.edu.cn/anaconda/pkgs/r
- https://mirrors.zju.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.zju.edu.cn/anaconda/cloud
pytorch: https://mirrors.zju.edu.cn/anaconda/cloud
兰州大学开源社区镜像站
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirror.lzu.edu.cn/anaconda/pkgs/main
- https://mirror.lzu.edu.cn/anaconda/pkgs/r
- https://mirror.lzu.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirror.lzu.edu.cn/anaconda/cloud
pytorch: https://mirror.lzu.edu.cn/anaconda/cloud
保存好换源的后注意一下,当然我自己不太清楚是否存在这样的问题,我是在网上看到很多人都有这一步,好像影响不大,所以我决定加上
清除索引缓存,保证用的是镜像站提供的索引
conda clean -i
然后查看配置信息,看看是不是刚刚自己配置的东西
conda config --show