On Ubuntu 10.04 I've used apt-get install pip
to install pip
after which I installed django
. Then I tried to uninstall django
with pip
via pip uninstall django
which gives me:
pip: error: No command by the name pip uninstall
From doing some research that is because I'm using an older version.
$pip --version
pip 0.3.1 from /usr/lib/python2.6/dist-packages (python 2.6)
I first realized that this version of pip
did not have uninstall when I installed the wrong version of django
and tried to uninstall it with
pip uninstall django
and ended up with
pip: error: No command by the name pip uninstall
From another article:
pip 0.3.1 is over two years old, and indeed it does not include the uninstall command. The current version of pip is 1.0.1.
I presume you're using an OS-packaged version of pip; those tend to be quite out of date. Quite a few bugs have been fixed and features added in the last couple years.
So what is the correct way to upgrade it on Ubuntu 10.04 so that I can gain access to the uninstall
command?
sudo pip install --upgrade pip
pip --version
still gives the same version.