mac upgrade python pip code example
Example 1: mac update pip
pip3 install --upgrade pip --user
Example 2: which python mac
$ brew update && brew upgrade python
pip3 install --upgrade pip --user
$ brew update && brew upgrade python