conda配置国内源(已验证速度)

用conda安装时总是出现速度慢等问题

用国内源下载速度会快很多倍

修改配置文件

bash 复制代码
gedit ~/.condarc

替换成以下内容

bash 复制代码
show_channel_urls: true
default_channels:
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  msys2: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

注意上面的http,不是https

其他指令

查看配置

conda config --show channels

删除默认

conda config --remove channels defaults

清除

conda clean -i

相关推荐
lhxcc_fly37 分钟前
Linux网络--8、NAT,代理,网络穿透
linux·服务器·网络·nat
摇滚侠42 分钟前
Spring Boot3零基础教程,Spring Boot 应用打包成 exe 可执行文件,笔记91 笔记92 笔记93
linux·spring boot·笔记
yuanManGan1 小时前
走进Linux的世界:初识操作系统(Operator System)
android·linux·运维
xier_ran1 小时前
Transformer:Decoder 中,Cross-Attention 所用的 K(Key)和 V(Value)矩阵,是如何从 Encoder 得到的
深度学习·矩阵·transformer
2401_841495642 小时前
【自然语言处理】轻量版生成式语言模型GPT
人工智能·python·gpt·深度学习·语言模型·自然语言处理·transformer
Thexhy2 小时前
在 CentOS 7 的 Linux 系统中配置 NFS
linux·运维·学习·centos
咯哦哦哦哦2 小时前
linux vscode+cmake+clangd
linux·ide·vscode
lang201509282 小时前
如何在 Linux 中获取更多信息
linux·运维·服务器
DeBuggggggg2 小时前
linux 安装Python3.9 且支持SSL
linux·运维·ssl
我是标同学2 小时前
vmware17安装ubuntu2204版本qemu运行armv8处理器uboot运行调试(包括windows)的一些工作
linux·运维·服务器