Skip to content

Instantly share code, notes, and snippets.

@jakebrinkmann
Last active April 24, 2017 21:37
Show Gist options
  • Save jakebrinkmann/a9bd31299fb02e01de126476841a4374 to your computer and use it in GitHub Desktop.
Save jakebrinkmann/a9bd31299fb02e01de126476841a4374 to your computer and use it in GitHub Desktop.
Use `conda` as enviornment manager

Use conda as enviornment manager, instead of virtualenv (due to simlink issues between windows/vagrant):

cd /usr/local/src/
# wget https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh # Full install
sudo wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
bash Miniconda2-latest-Linux-x86_64.sh
# edit ~/.bash_profile to add/remove the miniconda directory from your PATH environment variable

Example enviornment creation:

conda create -n py3k anaconda python=3
conda create -n myenv python

Change environments:

source activate py3k
source deactivate

While active, see the list of installed packages in the environment with the conda list command.

Remove environments:

conda remove --name myenv --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment