How-To: Using Anaconda - Remove a Channel in a Virtual Conda Environment via Command Line Interface

Question

How do I remove a channel in a virtual conda environment from the Command Line?

 

Answer

Note:  To activate an environment from the command line, see "How-To: Using Anaconda - Activate a Virtual Conda Environment via Command Line Interface"

1. From the Anaconda Prompt or Terminal command line (CLI) in an active virtual conda environment, enter "conda config --remove channels <channel_name>".

Example channel: pkgs/main

command prompt window in venv_3_13 virtual environment with "conda config --remove channels pkgs/main" as an example

 

2. Enter "conda config --show channels" to list channels in order of priority. Example channel was removed from the list.

Anaconda Prompt with "conda config --show channels" command.

Print Article

Related Articles (4)

Add Channel to Bottom of Channel List in a Conda Environment via Command Line Interface
Add Channel to Top of Channel List in a Conda Environment via Command Line Interface
Conda channels act like specialized "app stores" or online libraries where you can find and download different software packages for your projects. This article explains how to choose between major stores like the curated Anaconda Defaults or the massive, community-run Conda-Forge. It also covers how to set a "priority" for these stores so your computer always knows which one to check first to keep your software stable and up-to-date.
Index of Miniconda How-To Articles for Virtual Conda Environments