Update Python Mac • Recent & Best

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

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

which -a python3 If you work on different projects, use pyenv to switch between Python versions without conflicts. brew install pyenv (if using zsh, the default

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: brew install pyenv (if using zsh

Menu