开发者

Uninstall Easy_Install

So I installed Python 2.7.1 from source on a server using stow. I have been careless in the past, and I am trying to keep organized when dealing with source installs. So, enter stow. Now I installed easy_install with wget and running the ez_setup.py script. Lo and behold, in my infinite wisdom/carelessness, I forgot to stow it properly.

  1. H开发者_JAVA技巧ow do I uninstall ez_setup and start from scratch? I have seen a couple of people ask on SO and other places on the web, but there is no clear answer. Do I just uninstall the .egg, the .pth file, and be done with it?

  2. Does this matter? I had adjusted my PATH variable anyway, plus I do not even have su access on this box. I installed into my own Python install, already configured with stow.


Go to your "site-packages" directory (look at your sys.path) and then run:

rm -rf setuptools-*.egg pkg_resources.py easy_install.py setuptools/ setuptools-*.egg-info/

And delete the easy_install binary as well. I came up with these instructions when writing FAQ for PyPM.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜