Document how to use defaults channels to install packages

This commit is contained in:
romainx
2020-11-14 11:58:07 +01:00
parent f9167c2619
commit 7d550a0a83

View File

@@ -113,3 +113,17 @@ pip install some-package
conda install some-package
```
### Using alternative channels
Conda is configured by default to use only the [`conda-forge`](https://anaconda.org/conda-forge) channel.
However, alternative channels can be used either one shot by overwriting the default channel in the installation command or by configuring `conda` to use different channels.
The examples below shows how to use the [anaconda default channels](https://repo.anaconda.com/pkgs/main) instead of `conda-forge` to install packages.
```bash
# using defaults channels to install a package
conda install --channel defaults humanize
# configure conda to add default channels at the top of the list
conda config --system --prepend channels defaults
# install a package
conda install humanize
```