pyenv plugin for create and activate Python venv.
This is a lightweight alternative to the default pyenv-virtualenv plugin.
pyenv venv
- create in local venv
dir for current python
.
pyenv venv <dir>
- create in local <dir>
for current python
.
Note: call exit
instead of deactivate
, because it runs another
$SHELL
instance under the hood.
See pyenv help venv
.
Place this repo contents in <pyenv root>/plugins/pyenv-venv
, e.g.:
git clone https://github.com/reksar/pyenv-venv "`pyenv root`/plugins/pyenv-venv"