python3 --version update on mac code example
Example: mac upgrade python to 3.8
brew install python3
brew update && brew upgrade python
alias python=/usr/local/bin/python3
brew install python3
brew update && brew upgrade python
alias python=/usr/local/bin/python3