Install multiple versions of python

Get automatic installer

curl -fsSL https://pyenv.run | bash

Add path to .bashrc

export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init - bash)"
eval "$(pyenv virtualenv-init -)"

Reload bash

. ~/.bashrc

Install python version

pyenv install 3.10
pyenv global 3.10
https://github.com/pyenv/pyenv: Install multiple versions of python

Scroll to Top