Skip to content

Instantly share code, notes, and snippets.

@VathsalaAchar
Last active August 21, 2017 13:37
Show Gist options
  • Save VathsalaAchar/136fde6eebd4b762a496d9cf5a6f94ac to your computer and use it in GitHub Desktop.
Save VathsalaAchar/136fde6eebd4b762a496d9cf5a6f94ac to your computer and use it in GitHub Desktop.
# view all environments set up
$ conda info --envs
# conda environments:
#
dev /home/me/anaconda2/envs/dev
root * /home/me/anaconda2
# set up new environment
$ conda create -n play anaconda
Fetching package metadata .........
Solving package specifications: .
Package plan for installation in environment /home/me/anaconda2/envs/play:
...
...
# set up new environment with other python version
$ conda create -n play_three anaconda python=3.3
Fetching package metadata .........
Solving package specifications: .
Package plan for installation in environment /home/me/anaconda2/envs/play:
...
...
# activate environment
$ source activate play
# deactivate environment
$ source deactivate
# remove a conda environment
$ conda remove -n play -all
# check version
$ conda -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment