0
点赞
收藏
分享

微信扫一扫

如何在conda修改已经安装好的国内镜像


写这篇文章的理由是在anaconda下安装tensorflow和pytorch使用清华镜像下载速度慢,导致多次下载失败,网上说清华镜像挂了、有的人说清华镜像没挂,不管哪一方说的对与错,如果你之前使用了清华镜像的话导致你在anaconda中安装tensorflow和pytorch下载速度贼慢,那么我建议你吧清华镜像移除掉,具体方法如下:

1.首先我们先查看已经安装过的镜像源, win + r 打开cmd窗口执行命令然后输入:

conda config --show

  查看配置项​​channels​​​,如果显示带有​​tsinghua​​,则说明已安装过清华镜像,如下所示:

channels:
- https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/

2.接下来我们打开Anaconda Promote,输入:conda config --remove-key channels 

如何在conda修改已经安装好的国内镜像_下载速度

这样就可以把我们之前使用的清华镜像移除了。

3.按照步骤1,我们可以查看清华镜像是不是被移除了。

4.附加一篇文章的链接里面教你怎么添加镜像:​​如何添加镜像​​

 

举报

相关推荐

0 条评论