Anaconda换源和恢复默认源

换源:(清华源)

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/

//设置搜索时显示通道地址
conda config --set show_channel_urls yes

 换源(中科大源)

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/

//设置搜索时显示通道地址
conda config --set show_channel_urls yes

恢复默认源

conda config --remove-key channels

 删除旧镜像源

conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/

 添加新镜像源

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/

查看配置信息

conda config --show

 

  • 30
    点赞
  • 164
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Anaconda是一个在科学计算领域被广泛使用的Python发行版,它包含了许多科学计算、数据分析和数据可视化的库和工具。清华镜像则是国内较为知名的开软件镜像站点之一,提供了许多开软件的下载服务。 在使用Anaconda时,一些用户可能会遇到下载速度缓慢的问题,这是因为Anaconda默认的镜像在国外,访问速度受到网络延迟和带宽限制的影响。为此,用户可以更改Anaconda的镜像为国内的镜像站点,以提高下载速度和稳定性。 清华镜像是一个较为可靠和稳定的国内开软件镜像站点,其提供了Anaconda的镜像服务。用户可以按照以下步骤更新Anaconda的镜像为清华镜像: 1. 打开Anaconda Navigator,在左侧的菜单中点击“Environments”(环境)。 2. 在右侧的界面中选择需要更新镜像环境,点击“Channels”(频道)旁边的“Manage”(管理)按钮。 3. 在弹出的窗口中添加清华镜像的地址,例如: 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/ 4. 将清华镜像排在其他镜像的前面,以便Anaconda优先从该镜像下载所需的库和工具。 5. 点击“Ok”按钮保存更改,并在需要下载库和工具时选择“Update index”(更新索引)。 经过以上步骤,用户就可以将Anaconda的镜像更新为清华镜像,以获得更快、更稳定的下载速度,提高工作效率。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值