update python from 2.7 to 3.7 mac code example Example: which python mac $ brew update && brew upgrade python