When installing a package from a non-defaults
channel, we usually do:
conda install -c conda-forge packagename
This has the side effect of adding conda-forge
as a higher priority channel then defaults
Alternatively, we can now use
conda install conda-forge::packagename
to only have the specified packagename to be installed from conda-forge
, or one could do:
conda install -c defaults -c conda-forge packagename
But this is verbose and one could certainly forget this.
Alternatively, adding the conda-forge
channel, or better, appending the
conda-forge
channel to the available channels is a better option.
The list of available channels with their priority is obtained by:
conda config --show channels
And, adding/appending a channel is done using:
conda config --add conda-forge
# OR
conda config --append conda-forge