install latest version of python using brew code example
Example 1: brew install python 3.7
brew install [email protected]
Example 2: brew install pip python3
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
brew install [email protected]
export PATH="/usr/local/opt/python/libexec/bin:$PATH"