Skip to content

Instantly share code, notes, and snippets.

@id0Sch
Last active November 5, 2017 09:21
Show Gist options
  • Save id0Sch/047366935c8a96850e9de3c46a828aa6 to your computer and use it in GitHub Desktop.
Save id0Sch/047366935c8a96850e9de3c46a828aa6 to your computer and use it in GitHub Desktop.

TL;DR for http://docs.python-guide.org/en/latest/dev/virtualenvs/

** install virtualenvwrapper

export WORKON_HOME=~/Envs
source /usr/local/bin/virtualenvwrapper.sh

configure env

mkvirtualenv my_project

start working

workon my_project

More!

create a virtual env with a specific python version + preinstall requirements

mkvirtualenv --python=`which python3` -r requirements.txt <env-name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment