shell
$ git clone https://github.com/pyenv/pyenv.git ~/.pyenv
shell
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
$ echo 'eval "$(pyenv init --path)"' >> ~/.bashrc
$ echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
shell
$ source ~/.bashrc
shell
$ pyenv install --list
shell
$ pyenv install 3.9.0
shell
$ pyenv versions
shell
$ pyenv global 3.9.0
shell
$ pyenv local 3.9.0