Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How update/remove conda-forge channel from Anaconda?

I want to install Orange3 through conda. So I type in Anaconda Prompt

conda config --add channels confa-forge

After that I try to install Orange3

conda install orange3

But the Anaconda prompt show this error message

CondaHTTPEErroR: HTTP 404 NOT FOUND for url <https://conda.anaconda.org/confa-forge/noarch/repodata.json>

So I realize that I write confa-forge instead conda-forge.

How can I delete the channel confa-forge? Or Can I update the channel to conda-forge?

like image 440
Vinicius Avatar asked Jan 11 '19 16:01

Vinicius


People also ask

How do I remove channel conda?

If you want to remove a channel, we can use conda config –remove channels command.

Is conda-forge a default channel?

About conda-forge Miniforge is an effort to provide Miniconda-like installers, with the added feature that conda-forge is the default channel. Unlike Miniconda, these support ARMv8 64-bit (formally known as `aarch64`).


2 Answers

You can use:

conda config --show channels

This will list your channels

conda config --remove channels NOT_WANTED

This will remove the channel called NOT_WANTED(Assuming that it is part of your list e.g. your confa-forge)

BTW, I will recommend --append channel insteading of --add adding them

conda config --append channels CHANNEL_NAME

Why: If you do:

conda config --add channels conda-forge 

This will make conda-forge first hit channel. Your anaconda's default channel will get lower priority. Some of your packages will start updating to conda-forge.

Instead, do this:

conda config --append channels conda-forge

This keeps your default channel high in priority. Packages will be searched on your default before going to conda-forge :)

like image 121
Prayson W. Daniel Avatar answered Oct 23 '22 10:10

Prayson W. Daniel


Also you can also check

http://conda-forge.org/docs/user/tipsandtricks.html#using-multiple-channels

To see your channels' priorities $conda config --describe channel_priority

like image 1
rmarin Avatar answered Oct 23 '22 12:10

rmarin