Having just read this comment on upgrading pip, I ran:
sudo pip3 install --upgrade pip
As @ByteCommander points out, the upgrade goes to
/usr/local/bin/pip3, while the distribution's version (from python3-pip) is located at
/usr/bin/pip3, and the first has precedence due to the order in PATH. That seems to work fine, but if I specifically run the Ubuntu's version (16.04) I get an error:
/usr/bin/pip3 -V Traceback (most recent call last): File "/usr/bin/pip3", line 9, in <module> from pip import main ImportError: cannot import name 'main'
This is making me leery of python upgrades. So, I'm stuck trying to install a python package that's actually from a git repo and which is not in any apt-get repos, and which also has dependencies.