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