mac python 2.7 update to 3 code example
Example 1: upgrade python version mc
brew install python3
brew update && brew upgrade python
alias python=/usr/local/bin/python3
Example 2: install python macos catalina
export PATH=/usr/local/opt/python/libexec/bin:$PATH