CONDA设置、查看、管理源

Conda 查看源 / 管理源 完整命令(CSDN 可直接复制)


1. 查看当前配置的源

bash 复制代码
conda config --show channels

执行后会列出现在用的所有源(清华源/中科大源/官方源)。


2. 查看所有 Conda 配置信息

bash 复制代码
conda config --show-sources

会显示配置文件位置 + 完整源列表。


3. 一键添加清华源

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/r/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --set show_channel_urls yes

4. 移除所有源,恢复官方默认

bash 复制代码
conda config --remove-key channels

5. 查看 Conda 下载源是否生效

bash 复制代码
conda install numpy -y

如果显示地址是 tsinghua.edu.cn 就说明清华源生效了!


总结

复制代码
# 查看 Conda 源
conda config --show channels

# 查看完整配置
conda config --show-sources

# 恢复默认官方源
conda config --remove-key channels
相关推荐
DeepHacking1 天前
Ubuntu 上安装 ComfyUI(NVIDIA GPU / Conda / CUDA 12.1)
linux·ubuntu·conda
不吃香菜的小趴菜2 天前
conda配置国内镜像源
conda
hui-梦苑3 天前
[Conda]环境激活钩子作用与应用
conda
做cv的小昊3 天前
【conda】打包已有conda环境并在其他服务器上搭建
运维·服务器·python·conda·运维开发·pip·开发
csdn_aspnet4 天前
用Anaconda驯服AI开发流,从数据预处理到模型部署,全链路环境标准化实战
人工智能·docker·ai·conda·anaconda
时光之源5 天前
程序猿常用命令行(Linux、Windows、Powershell、CMD、conda、pip、apt)
linux·conda·pip
YuanDaima20487 天前
解决Conda环境下RTX 50系列显卡PyTorch+Transformers+PEFT微调报错
人工智能·pytorch·笔记·python·深度学习·机器学习·conda
ZzzGo!7 天前
【已解决】conda环境报错:Error while loading conda entry point: conda-libmamba-solver
conda
0 18 天前
pycharm配置conda虚拟环境
pycharm·conda