常用镜像地址

### Conda 常用镜像地址列表 以下是几个常用的 Conda 镜像站点及其配置方法: #### 清华大学开源软件镜像站 清华大学提供了稳定的 Anaconda 镜像服务,可以显著提升包下载速度。通过以下命令将其设置为默认镜像源: ```bash conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ conda config --set show_channel_urls yes ``` 上述命令会依次添加主要的包仓库以及特定频道(如 PyTorch),并启用显示通道 URL 的功能以便验证镜像源是否生效[^2]。 #### 中科大镜像站 中国科学技术大学同样提供了一个高质量的 Conda 镜像服务,其配置如下: ```bash 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/pkgs/r/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/pytorch/ conda config --set show_channel_urls yes ``` #### 西安交通大学镜像站 西安交通大学也维护了一套 Conda 镜像资源,适合西北地区的用户使用: ```bash conda config --add channels http://mirror.xjtu.edu.cn/anaconda/pkgs/main/ conda config --add channels http://mirror.xjtu.edu.cn/anaconda/pkgs/free/ conda config --add channels http://mirror.xjtu.edu.cn/anaconda/pkgs/r/ conda config --add channels http://mirror.xjtu.edu.cn/anaconda/cloud/pytorch/ conda config --set show_channel_urls yes ``` #### 自定义镜像源配置注意事项 如果需要进一步优化镜像源性能或者针对某些特殊需求调整配置,还可以修改 `~/.condarc` 文件手动指定更多参数。例如,在文件中加入以下内容可确保 conda-forge 和 pytorch 使用国内镜像源[^4]: ```yaml channels: - defaults 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 show_channel_urls: true ``` ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值