开发者

Uninstall Easy_Install

开发者 https://www.devze.com 2023-02-18 07:40 出处:网络
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

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

精彩评论

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

关注公众号