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