1, install Homebrew

Copy command line to terminal , Install .
/usr/bin/ruby -e "$(curl -fsSL

2, install pyenv
brew update
brew install pyenv

2.1 stay .bash_profile Add to file

export PYENV_ROOT=/usr/local/var/pyenv if which pyenv > /dev/null; then eval
"$(pyenv init -)"; fi

 2.2 Update input in terminal :
source .bash_profile

3, install 3.X edition python
pyenv install 3.5.1

4, Update after installation
pyenv rehash

5, View installed versions
// Number indicates the version the system is currently using pyenv versions

6, switch python edition
pyenv global 3.5.1

7, confirm python edition