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?
I was facing the same problem as well. I'm using the following code to fix it: