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
相关推荐
饭来_7 小时前
Ubuntu 中出现 CondaToSNonInteractiveError 的解决方法
ubuntu·conda·debug
emo_2b2 天前
Pycharm配置conda解释器时遇到的问题及解决方法
linux·pycharm·conda
Είναι η κοπέλα4 天前
llama.cpp 与 GGUF 格式:本地大模型的“裸引擎“
开发语言·人工智能·pytorch·python·conda
Είναι η κοπέλα6 天前
显存计算与模型选择:你的显卡能跑多大的模型
人工智能·pytorch·python·开源·conda
天蓝蓝的本我6 天前
conda日常用到的命令积累1-登录linux,安装pycharm
linux·pycharm·conda
Είναι η κοπέλα8 天前
Python 虚拟环境:venv、conda 与 Python 版本选择全解
开发语言·python·conda
夏天拐跑了西瓜11 天前
一文入门LangChain:从框架认知到构建你的第一个AI Agent
python·langchain·conda·agent
weixin_4617694011 天前
机械臂SDK运行日志
conda·sdk
三点水-here12 天前
从 Miniconda 迁移到 Miniforge3 全记录:安装、配置、环境迁移与排错实录
python·conda
MI_farmer13 天前
Anaconda 安装在 D 盘但虚拟环境跑到 C 盘,以及 Conda PermissionError: WinError 5 的解决方法
c语言·开发语言·conda