Reputation: 509
I made a mistake by using su -c 'pip3 install' --upgrade pip'
to upgrade pip because I got errors when trying to upgrade it as a normal user.
This removed the pre-installed pip and dumped it in /tmp
, replacing it with a system wide installation of pip which is only accessible by root. If I try to uninstall the root controlled pip then I think that it would cause problems so I haven't tried to.
How do I get back the pre-installed pip using the executable that is still in /tmp
?
/tmp/pip-ufkfr3th-uninstall
└── usr
└── bin
└── pip
Upvotes: 0
Views: 4914
Reputation: 7225
The command you should use is
sudo apt-get --reinstall install python-pip
or
sudo yum reinstall python27-python-pip
dependent of packaging system you use (DEB or RPM)
Upvotes: 1