pip install python 3.6 mac code example Example 1: command to install python3.6 on mac os $ brew switch python 3.6.5_1 Example 2: command to install python3.6 on mac os $ brew unlink python