Contents

Pyenv

Install

1
> brew install pyenv

Environment setting

/.zshrc setup

1
2
3
4
5
6
7
8
9
# vim ~/.zshrc

# ...

export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew'