Ubuntu – Trouble with pip on 14.04

bashpipupgrade

I am trying to install a few different things and having issues.

I thought pip could have been the issue on one of the packages I was trying to install. So I decided to try to upgrade pip, following this reference:

https://pip.pypa.io/en/latest/installing.html#install-pip

So I ran :

sudo pip install -U pip

That output was:

Downloading/unpacking pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-6.1.1-py2.py3-none-any.whl#md5=172eb5abab25a5e0f7a7b63c7a49378d
  Downloading pip-6.1.1-py2.py3-none-any.whl (1.1MB): 1.1MB downloaded
Installing collected packages: pip
  Found existing installation: pip 1.5.4
    Uninstalling pip:
      Successfully uninstalled pip
Successfully installed pip
Cleaning up...

Now however when I run:

pip install <package>

I get:

"bash: /usr/bin/pip: No such file or directory"

What can I do to get the new pip working?
(And hopefully not have to re-install all of the packages that the older version of pip had installed).

I am very new Ubuntu and to using pip.

Additional:

I tried running:

easy_install pip

This gave me:

Searching for pip
Best match: pip 6.1.1
Adding pip 6.1.1 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip3.4 script to /usr/local/bin
Installing pip3 script to /usr/local/bin

Using /usr/local/lib/python2.7/dist-packages
Processing dependencies for pip
Finished processing dependencies for pip

Still the pip command is not being recognized.

pip --version

bash: /usr/bin/pip: No such file or directory

More additional:
I downloaded the get-pip.py and then ran python get-pip.py.
This gave me an error something like "InsecurePlatformWarning"

Best Answer

Once you have upgraded pip you only needed to update your link to your new pip on /usr/bin

sudo ln -s /usr/local/bin/pip /usr/bin/

since the old one has been removed when you upgrade the pip package using pip ;-)

Then, you are ready to go :)

Related Question