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