You need to add pyenv to your shell configuration (Zsh is the default on modern macOS).
Homebrew is a package manager that makes updating much simpler in the long run. update python mac
brew install pyenv
echo 'eval "$(pyenv init -)"' >> ~/.zshrc source ~/.zshrc You need to add pyenv to your shell
python --version
This report outlines the recommended methods for updating Python on macOS, ranging from the most flexible approach (version management) to the simplest (official installer). update python mac