brew install python3 pip code example
Example 1: brew install python 3.7
brew install python@3.7
Example 2: brew install pip
$ sudo pip install --upgrade pip
Example 3: brew install pip python3
export PATH="/usr/local/opt/python/libexec/bin:$PATH"