install python 2.7.10 mac brew code example Example 1: brew install python 3.7 brew install python@3.7 Example 2: brew install newest python brew install python3