Skip to Main Content

Update Python: Mac

Get the best sources on Texas state government.

Keeping Python up to date ensures you have the latest features, bug fixes, and security patches. This guide covers the safest and most effective methods for updating Python on macOS. 1. Check Your Current Python Version Before updating, open Terminal (Applications > Utilities > Terminal) and run:

python3 --version You should see the new version number (e.g., Python 3.12.2 ).

via Homebrew:

To see Python installations on your system:

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

Choose the method that fits your workflow, and you’ll always have a modern, secure Python on your Mac.

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