install python 3.7.1 mac os code example Example: install python in mac brew install python3 brew install python2