Using Conda with Anaconda Server
Configuration
You will need to configure Conda to install packages from your Anaconda Server installation.
- Set your channel alias on conda:
-
If you are using SSL:
-
If you are not using SSL:
And configure your default channels to include the channel where Anaconda Distribution packages have been mirrored:
You can run the above command multiple times to configure several default channels.
Manual Configuration
Alternatively, you can edit your .condarc
file manually:
You will need to configure your conda configuration file, .condarc
, to point to your instance of Anaconda Server and
set up the channel(s) you want to pull packages from. This enables Conda to install packages from your instance of
Anaconda Server rather than pulling from repo.anaconda.com.
The location of your .condarc
file depends on which operating system you use. Consult the
condarc documentation
to determine the correct path.
- Open the
.condarc
file with a text editor - Set the
channel_alias
and thedefault_channels
- Save the file.
Installing packages
Install packages from Anaconda Server (public channels):
The -c <CHANNEL_NAME>
flag allows you to install packages from channels on Anaconda Server that have been
created by users or administrators.
If you do not specify the -c
flag, packages will be taken from the channels in the default_channels
configuration.
Prior to installing packages from a private or authenticated channel, you first need to log in using the Anaconda Server CLI, not from the browser.
Conda Reference
More information on conda commands can be found in the conda documentation.
Was this page helpful?