3

I found out that I have two versions of pip installed on my OS X, and I would like to remove the older version (which is also labelled as 'inactive' by yolk -l).

In another SO post, I found that you can uninstall a package using pip uninstall command. But in my case, I would like to remove only the older version of the package, leaving the active version untouched. How should I do this properly?

Community
  • 1
  • 1
skyork
  • 7,113
  • 18
  • 63
  • 103
  • It's suprising `pip list` or `pip freeze` doesn't list in-active versions as `yolk -l` does. And that there isn't command to clear system of in-active versions. Have you found some (pre-automated) way (other than self-scripting it, as suggested by Pooria below)? – Tuukka Mustonen Mar 12 '14 at 14:07

1 Answers1

0

to remove your inactive version, you should delete it from easy-install.pth file, and remove egg directory of that package. I don't have OS X, but in my ubuntu, easy-install.pth is located in "/usr/local/lib/python2.7/dist-packages/easy-install.pth" and egg directories are in "/usr/local/lib/python2.7/dist-packages/".

Pooria Kaviani
  • 748
  • 1
  • 8
  • 17