Install it with:
python3 --version or
python3 --version You should see the new version number (e.g., Python 3.12.2 ). update python mac
brew install python@3.12 Homebrew installs Python to /opt/homebrew/bin/python3 (Apple Silicon) or /usr/local/bin/python3 (Intel). After installing, check the version again:
echo 'eval "$(pyenv init -)"' >> ~/.zshrc source ~/.zshrc Install it with: python3 --version or python3 --version
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:
brew update brew upgrade python To install a specific Python version (e.g., 3.12): open Terminal (Applications >
via Homebrew: