macos python 3.8 to 3.7 code example Example: install python in mac brew install python3 brew install python2