Alwyn Mathew     Publication     Talks     Teaching     Blog     Resume

Anaconda

Anaconda is a free and open-source distribution of the Python and R programming languages for scientific computing, that aims to simplify package management and deployment. Package versions are managed by the package management system conda. Download Anaconda from here.

Create conda environment

conda create --name <env-name> python=<version-no.>

Activate conda environment

source activate <env-name>

Deactivate conda environment

source deactivate <env-name>

List all conda environments

conda env list

Install packages in environment

conda install <package-name>

Remove packages from environment

conda remove <package-name>

List all packages in conda environment

conda list

Write all packages in an environment to a file

conda env export -f <file-name>.yml

Use above file to replicate the conda environment

conda env create -f <file-name>.yml

Remove conda environment

conda env remove --name <env-name>