python upgrade brew code example Example: brew install pip python3 export PATH="/usr/local/opt/python/libexec/bin:$PATH"