I would like to use pyenv to switch python2 and python3.
I successfully downloaded python2 and python3 and pyenv with following codes.
brew install pyenv
Try this: eval "$(pyenv init -)"
eval "$(pyenv init -)"
Example:
$ python -V Python 2.7.9 mac:~ $ eval "$(pyenv init -)" mac:~ $ python -V Python 3.5.0
More info: https://github.com/pyenv/pyenv