how to install python2 on mac code example
Example 1: install python in mac
brew install python3
brew install python2
Example 2: command to install python3.6 on mac os
$ brew unlink python
brew install python3
brew install python2
$ brew unlink python