URL | https://anaconda.org/conda-forge |
Name | conda-forge |
File Path | file:///local-dev-channels/my-channel |
channels:
list in your .conadrc
file, see Managing channel configuration.
.condarc
file, open Anaconda Prompt (Terminal on macOS/Linux) and run the following command:
.condarc
is most likely in your Home directory, it is a hidden file on MacOS and Linux and is not visible in file browsers under under normal circumstances.
You can view hidden files and folders using the following guidance for your operating system:
.condarc
file, see Using the .condarc conda configuration file in the official conda documentation.
https://repo.anaconda.com/pkgs/main
https://repo.anaconda.com/pkgs/r
https://repo.anaconda.com/pkgs/msys2
(Windows only).condarc
) or by deleting the defaults
channel entirely.
.condarc
file.default_channels:
list overwrites the channels hardcoded into defaults
..condarc
file or by using conda commands in your Anaconda Prompt (Terminal for macOS/Linux).
.condarc
file.
channels:
list.
For example, if you want to add conda-forge to your channels list below the defaults
channel, your channels:
list would look like the following:
channels:
list in your .condarc
file. If the requested package is not located in that channel, conda continues searching using the next entry in the channels:
list.
When conda reaches the defaults
entry in the channels:
list, it searches the channels listed under the default_channels:
list, in the same descending order. This is called “channel priority”, and it determines which source conda uses first when resolving packages.
.condarc
with the simplest version of the conda create
, conda install
or conda update
commands, but if you want to specify a specific channel, you can do so in two ways: using the channel::package
syntax or using the --channel
flag. These methods both install a package from the channel you specify, but do so in slightly different ways.
.condarc
file, following channel priority order.
--channel
flag is only recommended when creating temporary or test environments or if you are an expert conda user, as more packages might end up being installed or updated from the specified channel than intended.
--channel
flag often, consider adding the specified channel to your channels list, so you can better control how conda gets packages.conda install https://conda.anaconda.org::<PACKAGE>
, but specifying a long and complex channel URL every time you want to install a package takes time and might lead to mistakes. To improve your experience and streamline your workflows, conda allows you to implement a channel alias.
Your channel alias is used to automatically complete the channel address when installing conda packages. Conda prepends the provided channel name with the channel alias to create the full channel URL it requires to locate packages. By default, your channel alias is https://conda.anaconda.org
, which is the domain name for Anaconda.org.
For example, the conda-forge channel is hosted at anaconda.org/conda-forge. With the default channel alias in place, you can just type the channel name conda-forge
when specifying the package, instead of the longer https://conda.anaconda.org/conda-forge
.
Channel aliases can also be used to point to different hosting places, such as the premium repositories Anaconda offers through our paid tiers. For more information on the channel alias, see channel_alias: Set a channel alias in the official conda documentation.
For more information on creating channels within your own local computer files, see Creating custom channels in the official conda documentation.