brew install pyenv (if using zsh, the default on macOS):

echo 'eval "$(pyenv init -)"' >> ~/.zshrc source ~/.zshrc

brew update brew upgrade python To install a specific Python version (e.g., 3.12):

Install it with:

Update Python Mac [new] Instant

brew install pyenv (if using zsh, the default on macOS):

echo 'eval "$(pyenv init -)"' >> ~/.zshrc source ~/.zshrc update python mac

brew update brew upgrade python To install a specific Python version (e.g., 3.12): brew install pyenv (if using zsh, the default

Install it with: