Notes on the settings

View My GitHub Profile

Installation

Clone from https://github.com/pyenv/pyenv

$ git clone https://github.com/pyenv/pyenv.git ~/.pyenv

Write settings to .bash_profile

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
$ source ~/.bash_profile

Write settings to .bash_rc

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
if command -v pyenv 1>/dev/null 2>&1; then
  eval "$(pyenv init -)"
fi
$ source ~/.bash_rc