Python pyenv-virtualenv

From wikinotes

pyenv-virtualenv allows you to automatically activate virtualenvs as you change directories.
(just like pyenv switches python installs as you change directories).

Documentation

github https://github.com/pyenv/pyenv-virtualenv

Install

pacaur -S pyenv-virtualenv
# NOTE: instructions for other environments are more simply pip-install

Usage

Initialize pyenv-virtualenv within your bashrc/zshrc.

if where pyenv 2>&1 ; then
    if pyenv virtualenvs 2>&1 ; then
        eval "$(pyenv virtualenv-init -)"
    fi
    eval "$(pyenv init -)"
fi