homebrew install pip3 code example
Example 1: brew install pip
$ sudo pip install --upgrade pip
Example 2: brew install pip
$ brew unlink python && brew link python
$ sudo pip install --upgrade pip
$ brew unlink python && brew link python