Miniconda3清华镜像源如何设置,真的不能用了?

在Linux系统上使用Miniconda下载Python时遇到问题,尝试了删除cache、移除默认channels等方法未果。最终通过编辑~/.condarc文件,将所有内容替换为清华大学的Anaconda镜像源链接:https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/,成功解决了下载问题,避免了重新安装Miniconda。此外,了解到Miniconda的基本使用和解决问题的重要性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

本来兴高采烈地打算大显身手,进行Linux系统上通过miniconda 下载Python。结果出现了问题。查找网络上各种解决不方法,忙了一下午,在接近放弃,打算重现install miniconda,终于倒腾出了一点奇迹。

清华镜像源还有中科大的还能不能用?清华的还可以,中科大的我没试,既然有一个可以就行了。 我的坑:1.删除了 cache,比如 /username/.conda/pkgs 然而并无卵用。2.remove defaults channels,继续安装,依旧出错3.换了很多的channels,来回调换,依旧没有用。

终于, vim /username/.condarc,
把原来所有的内容,对,是所有的内容,更换成了

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: h
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值