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