anaconda镜像

下载一个包老是下载不下来,于是放弃了官方版改为国内镜像。

清华镜像

(打开Anaconda Prompt   或者 打开cmd,运行下面的命令)

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes

上面的进行完后,到user—用户名  目录下的.condarc文件中查看,如下所示:

1 channels:
2   - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
3   - defaults
4 show_channel_urls: true

首先查看网址是否正确,然后将- defaults那一行删掉

 

中科大镜像

(由于网上有好多说清华镜像不能用的帖子,我在这里也贴一下中科大的网址)

同样运行下面的两个命令

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/ 
conda config --set show_channel_urls yes

同样将.condarc文件中的- defaults删掉

另外,如果之前用的是清华的镜像改为中科大的镜像的话,记得把.condarc文件中含有清华镜像网址的那一行删掉,反之亦然。

 

posted @ 2019-03-30 16:04  芩溪儿  阅读(1537)  评论(0编辑  收藏  举报