Friday 10 February 2012

Updating or removal of easy_install installations

$ sudo easy_install ipython

... installs ipython, usually. Today, attempting to update ipython from 0.11 to 0.12 failed. Symptoms: easy_install connected and refused to download 0.12, using the existing 0.11 egg present.

Fix:
$ easy_install -m ipython

Fails, as I don't have write permissions. But it tells me where the .egg and .pth
files are.

$ sudo easy_install -m ipython

Removes the installed program. Navigate to the directory specified in the error
above and remove the .egg directory. Reissue the install command:

$ sudo easy_install ipython

Now, 0.12 is donwloaded and installed. This didn't work
first time as I had PATHs specified in .bashrc that prevented
it. Removal of the PATHs resulted in things working okay.