Conda - Channel

About

A package repository is called a channel in Conda.

This is a store for conda package.

Conda packages are downloaded from remote channels, which are URLs to directories containing conda packages.

The conda command searches a default set of channels. You can modify what remote channels are automatically searched. You might want to do this to maintain a private or internal channel.

Configuration

Create

List

conda config --show
custom_channels:
  pkgs/main: https://repo.anaconda.com
  pkgs/free: https://repo.anaconda.com
  pkgs/r: https://repo.anaconda.com
  pkgs/pro: https://repo.anaconda.com
  usr/local/conda-bld: file://
default_channels:
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/free
  - https://repo.anaconda.com/pkgs/r
  - https://repo.anaconda.com/pkgs/pro

Set

The list of channel can be configured in .condarc

channels:
  - <anaconda_dot_org_username>
  - http://some.custom/channel
  - file:///some/local/directory
  - defaults

where:

  • defaults is the default and automatically include all default channels.
  • Non-URL channels are interpreted as:

Show

Show channel URLs when:

  • displaying what is going to be downloaded
  • and in conda list
show_channel_urls: True

Allow other channel

Doc

allow_other_channels: False

Where:

  • allow_other_channels: True or not specified, allow each user to access:
    • the default channels
    • and any channels that the user specifies in their local .condarc file

Default

Packages are automatically downloaded and updated from http://repo.continuum.io/pkgs/.

The defaults channel points to several channels at the repo.continuum.io repository but you can override them with the default_channels properties.

default_channels:
  - <anaconda_dot_org_username>
  - http://some.custom/channel
  - file:///some/local/directory

With the config command.

conda config --show
default_channels:
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/free
  - https://repo.anaconda.com/pkgs/r
  - https://repo.anaconda.com/pkgs/pro

Documentation / Reference


Powered by ComboStrap