The purpose for this post is simple, get PyEnv installed so that i can get back to it whenever i format my computer and believe me, it happens very often.

This is actually quite simple - First, make sure you've got HomeBrew installed, then run:

brew update
brew install pyenv


Since i don't have a python requirement at work, i'll simply use the latest:

pyenv install 3.6.2


Now all you need to do is add eval "$(pyenv init -)" to your $HOME/.bash_profile. Once this has been set, you can simply select the python version you want:

pyenv global 3.6.2


This will cause a file under ~/.python-version to contain the default python version

THE END!