mikebmassey mikebmassey - 2 months ago 19
Python Question

Too many levels of symlinks?

I am attempting to re-install

pip
using
easy_install
.

When I run
easy_install pip
, I get the following error message:

easy_install pip
Searching for pip
Best match: pip 1.4.1
Adding pip 1.4.1 to easy-install.pth file
Installing pip script to /usr/local/bin
error: /usr/local/bin/pip: Too many levels of symbolic links


How can I remove the symlink? Alternatively/related - is
pip
installed already?

Answer

For some reason, /usr/local/bin/pip is a symlink pointing to itself, and easy_install is getting confused trying to write to it, instead of just deleting it first. You can do that yourself by running

sudo rm /usr/local/bin/pip

then rerunning the installation process.

Comments