/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Replace 3.9.0 with the version you wish to install and set as global.
pyenv install 3.12.0
brew update
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Replace 3.9.0 with the version you wish to install and set as global. mac os upgrade python
pyenv install 3.12.0
brew update