python 3 default on mac code example Example 1: which python mac $ brew update && brew upgrade python Example 2: mac catallina python3 $ brew install pyenv