install python3 as default mac code example
Example 1: use python3 as default mac
ln -s -f /usr/local/bin/python3.7 /usr/local/bin/python
Example 2: install python 3 on mac
$ brew install python3
ln -s -f /usr/local/bin/python3.7 /usr/local/bin/python
$ brew install python3