简体   繁体   English

如何卸载我使用easy_install安装的Python模块(“egg”)?

[英]How do I uninstall a Python module (“egg”) that I installed with easy_install?

I've installed a couple of Python modules using easy_install . 我使用easy_install安装了几个Python模块。 How do I uninstall them? 我该如何卸载它们?

I couldn't see an uninstall option listed in easy_install --help . 我看不到easy_install --help列出的卸载选项easy_install --help

Ah, here we go: 啊,我们走了:

$ easy_install -m PackageName

$ rm EggFile

I'm not exactly clear what the -m option does, but this method seems to work for me (ie after doing it, I can no longer import the modules in my Python interpreter). 我不太清楚-m选项的作用,但是这个方法对我来说似乎有用(也就是说,在我这样做之后,我再也无法在我的Python解释器中import模块了)。

easy_install did work for me. easy_install确实对我easy_install

I also was able to test that easy_install -m short name worked. 我还能够测试easy_install -m短名称是否奏效。 For example: 例如:

easy_install -m mesos # ( short for mesos-0.16.0-py2.6-linux-x86_64.egg)

pip uninstall mesos also ending up working with short name. pip uninstall mesos也最终使用短名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM