Conda

The conda command is the primary interface for managing Anaconda installations. It can query and search the Anaconda package index and current Anaconda installation, create new conda environments, and install and update packages into existing conda environments.

Installation

conda is a part of the Anaconda distribution which can be downloaded here.

Getting Started

To demonstrate the ease of a typical conda workflow, we will create a conda environment with a version of NumPy different from the default version.

First, we will check our system’s Numpy version

$ python
Python 2.7.5 |Anaconda 1.6.1 (x86_64)| (default, Jun 28 2013, 22:20:13)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.__version__
'1.7.1'

Next we will create a conda environment using a different version of NumPy

$ conda create -p ~/anaconda/envs/test numpy=1.6 anaconda

Package plan for creating environment at /Users/maggie/anaconda/envs/test:

The following packages will be downloaded:

[      COMPLETE      ] |#################################################| 100%

Now we change our PATH variable to point to the new environment

$ export PATH=~/anaconda/envs/test/bin/:$PATH

Finally, we check the version of Numpy again

$ python
Python 2.7.5 |Anaconda 1.6.1 (x86_64)| (unknown, Jan 10 2013, 12:19:03)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.__version__
'1.6.2'

Requirements

  • python 2.7, 3.3, or 3.4
  • pycosat
  • pyyaml
  • requests

License Agreement

conda is distributed under the BSD license.

Indices and tables