如何删除conda配置中的通道
(base) C:\Users\lenovo>conda config --show channels
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.aliyun.com/pypi/simple/
- https://pypi.tuna.tsinghua.edu.cn/simple
- defaults
怎么将上述通道删除内容:可以使用以下命令将上述通道删除:
conda config --remove channels '<channel_url>'
其中,<channel_url>为要删除的通道的URL地址。例如,要删除 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/' 这个通道,可以执行以下命令:
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
重复执行该命令,删除所有需要删除的通道。
原文地址: https://www.cveoy.top/t/topic/nvYJ 著作权归作者所有。请勿转载和采集!