I did pip install -U easyinstall, and then pip install -U pip to upgrade my pip. However, I get this error now when trying to use pip:
root@d8fb98fc3a66:/# which
If doing hash -r
doesn't work, it's possible that the new pip
got installed in /usr/local/bin/
instead of the old one in /usr/bin/
. And it so happens that the new location is not in the list of paths searched for executables.
In that case, either fix the list of paths or copy the executables:
cp -p /usr/local/bin/pip* /usr/bin/
You may also hardlink the executables instead of copying them (this may ensure that future upgrades are done correctly).