Ubuntu: pip upgrade not working


I am trying to upgrade pip from version 7.1.2 to 8.0.2 But I am not able to upgrade it due to some errors. I ran the following command.

user@ubuntu:~/devstack$ pip install --upgrade pip  

I am getting following Traceback errors:

Screenshot of output
Screenshot of output continue

Please let me know how can I make it work.


You can either upgrade pip globally using sudo:

sudo pip3 install --upgrade pip  sudo pip2 install --upgrade pip  

Or you can upgrade it for your user only using the --user option:

pip3 install --upgrade --user pip  pip2 install --upgrade --user pip  

Note that I upgrade both pips for Python 2 and Python 3. It's important to upgrade the version for Python 3 first, because the one you upgrade last will later be accessible through pip, which must be pip2 by default.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »