# install the CLI tools
xcode-select --install
# update brew index
brew update; brew upgrade; brew cleanup
# install pyenv
brew install pyenv
# edit profile - end of file
vim ~/.zshrc
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
# .bashprofile instead of .pyenv if you use default shell
# restart shell
$SHELL -l
Fin~