pyenv

Simple Python version manager for installing and switching Python versions

brewmacoslinux
Try with needOr install directly
Source

About

Python version management

Commands

pyenv

Examples

List all available Python versions to install$ pyenv install --list
Install a specific Python version$ pyenv install 3.11.0
Set the global Python version$ pyenv global 3.11.0