how to install python 3.9 with command line tools mac code example Example: which python mac $ brew update && brew upgrade python