pyenv
curl https://pyenv.run | bash
Once installed, add this to your .bashrc file
export PYENV_ROOT="$HOME/.pyenv" [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)"
https://github.com/pyenv/pyenv?tab=readme-ov-file#automatic-installer