Reputation: 1
I am trying to create an environment in my Anaconda Navigator and I keep coming across this error.
UnavailableInvalidChannel: The channel is not accessible or is invalid.
channel name: gurobii
channel url: http://conda.anaconda.org/gurobii
error code: 404
You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state,
and use `conda config --show-sources` to view config file locations.
When I run --show channels I get:
channels:
- conda-forge
- http://conda.anaconda.org/gurobii
- http://conda.anaconda.org/gurobi
- defaults
I have tried:
conda config --remove-key default_channels
And it will not work as I keep getting a CondaKeyError.
CondaKeyError: 'default_channels': key 'default_channels' is not in the config file
Does anyone know why this might be happening and how I can reconfigure my Anaconda?
Upvotes: 0
Views: 2320
Reputation: 2096
This error is so weird. I have seen others working with conda-forge
channel. For me, having only the default
channels worked (I am behind a coporate proxy though). I would say to try with different channels and see which one works! Relevant commands are below:
conda config --show channels #show all channels
conda confid --remove channels bioconda #remove a channel
conda config --add channels defaults # add a channel
Then run,
conda update -n base -c defaults conda
Upvotes: 0
Reputation: 1
I was facing the same problem as well. I'm using the following code to fix it:
conda config --remove-key channels
conda config --append channels conda-forge --append channels bioconda --append
channels defaults
Upvotes: 0