First install pyenv.
Afterwards ...
Installing a Python version:
pyenv install 2.7.14
Creating a new virtualenv:
pyenv virtualenv 2.7.14 myspecialenv
Uninstalling a virtualenv:
pyenv uninstall myspecialenv
To automatically switch virtualenv when switching to the project's folder:
$ echo "myspecialenv" > .python-version