install pip by homebrew code example Example 1: brew install pip $ sudo pip install --upgrade pip Example 2: brew install pip $ pip -V $ pip3 -V