update README about pyenv activate

This commit is contained in:
Yamashita Yuu
2014-01-17 20:25:24 +09:00
parent 85959c735d
commit 08951ea22d

View File

@@ -78,6 +78,23 @@ version.
venv33 (created from /home/yyuu/.pyenv/versions/3.3.3) 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 ### Special environment variables
You can set certain environment variables to control the pyenv-virtualenv. You can set certain environment variables to control the pyenv-virtualenv.