The conda
command is the primary interface for managing an Anaconda installations. It can query and search the Anaconda package index and current Anaconda installation, create new Anaconda environments, and install and upgrade packages into existing Anaconda environments.
Create an Anaconda environment called myenv
containing the latest version of scipy and all dependencies.
$ conda create -n myenv scipy
Install the latest version of pandas into myenv
$ conda install -n myenv pandas
Update all specified packages to latest versions in myenv
$ conda update -n myenv anaconda
Now that you have a custom environment, there are two ways to make it available for use
Using Activate
Activating a conda environment is made simple through the use of the activate command
$ source activate myenv
Similarly, to deactivate an environment and return your PATH variable to its previous state, use
$ source deactivate