python 2.7 - can't upgrade pip to 9.0.1 ubuntu 16.04 -


i tried following command many times without luck:

sudo -h pip install -u pip 

here output:

collecting pip   using cached pip-9.0.1-py2.py3-none-any.whl installing collected packages: pip   found existing installation: pip 8.1.1     not uninstalling pip @ /usr/lib/python2.7/dist-packages, outside environment /usr installed pip-8.1.1 using pip version 8.1.1, version 9.0.1 available. should consider upgrading via 'pip install --upgrade pip' command. 

my pip still @ version 8.1.1

pip --version pip 8.1.1 /usr/lib/python2.7/dist-packages (python 2.7) 

what going on? why upgrade option didn't work?

pip install installs /usr/local/lib/python2.7/dist-packages/.

your new pip /usr/local/bin/pip. add /usr/local/bin before /usr/bin in path , verify new pip being run pip --version.

upd. found culprit of problem — /usr/lib/python2.7/dist-packages/easy-install.pth contains wrong line /usr/lib/python2.7/dist-packages. remove it.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -