From 08951ea22dcd76e958e4829ee95ff8e06246a257 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Fri, 17 Jan 2014 20:25:24 +0900 Subject: [PATCH] update README about `pyenv activate` --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 8cb5762..271d49f 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,23 @@ version. venv33 (created from /home/yyuu/.pyenv/versions/3.3.3) +### Activate virtualenv + +Some external tools (e.g. [jedi](https://github.com/davidhalter/jedi)) might require you to `activate` the virtualenv. +`pyenv activate` lets you to activate the virtualenv into your shell. + + $ pyenv activate venv27 + +`pyenv activate` acts almost like following commands. + + $ pyenv shell venv27 + $ source "$(pyenv prefix venv27)/bin/activate" + +You can deactivate the activate'd virtualenv by `pyenv deactivate`. + + $ pyenv deactivate + + ### Special environment variables You can set certain environment variables to control the pyenv-virtualenv.