From c0585ee55cae621ad346845837cc03883eef3b80 Mon Sep 17 00:00:00 2001 From: Pierre Poulain Date: Tue, 15 Mar 2016 17:34:28 +0100 Subject: [PATCH] Append virtualenvwrapper commands --- cheat/cheatsheets/virtualenv | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/cheat/cheatsheets/virtualenv b/cheat/cheatsheets/virtualenv index 63d3920..a0fb6d4 100644 --- a/cheat/cheatsheets/virtualenv +++ b/cheat/cheatsheets/virtualenv @@ -13,3 +13,26 @@ source /path/to/project/env_name/bin/activate # Quit environment deactivate + +# virtualenvwrapper (wrapper for virtualenv) +# installation +pip install --user virtualenvwrapper +# configuration +# add in ~/.bashrc or similar +export WORKON_HOME=~/.virtualenvs +mkdir -p $WORKON_HOME +source ~/.local/bin/virtualenvwrapper.sh + +# Create new environmment (with virtualenvwrapper) +mkvirtualenv env_name +# new environmment is stored in ~/.virtualenvs + +# Activate environmment (with virtualenvwrapper) +workon env_name + +# Quit environmment (with virtualenvwrapper) +deactivate + +# Delete environmment (with virtualenvwrapper) +rmvirtualenv env_name +