Skip to content

Instantly share code, notes, and snippets.

@ConradStack
Last active July 21, 2016 18:29
Show Gist options
  • Save ConradStack/58ff3f5e3e211955baff5a58d72936c5 to your computer and use it in GitHub Desktop.
Save ConradStack/58ff3f5e3e211955baff5a58d72936c5 to your computer and use it in GitHub Desktop.
Managing python versions with Anaconda
## If python 3.5, say, has been installed but you want to use v2.7 for
## a particular project
# Create environment for different (or specific) version of python:
conda create -n py27 python=2.7 anaconda
# Check available environments (optional)
# conda info --envs
# Activate this python version:
source activate py27
# ... do stuff ... #
# Deactivate this environment
source deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment