I followed online instructions on how to install pip on macOS (for example this, this, and this).
pip
I all seems to simple, but it\'s not working for me.
You might have pip3 instead. Use it to upgrade pip.
pip3 install --upgrade pip