I’ve installed a couple of Python modules using easy_install. How do I uninstall them?
我使用easy_install安装了几个Python模块。我该如何卸载它们?
I couldn’t see an uninstall option listed in easy_install --help
.
我看不到easy_install中列出的卸载选项--help。
2 个解决方案
#1
28
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 (i.e. after doing it, I can no longer import
the modules in my Python interpreter).
我不太清楚-m选项的作用,但这个方法似乎对我有效(即在我这样做之后,我再也无法在Python解释器中导入模块)。
#2
2
easy_install
did work for me.
easy_install确实对我有用。
I also was able to test that easy_install -m
short name worked. For example:
我还能够测试easy_install -m短名称是否有效。例如:
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也最终使用短名称。
#1
28
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 (i.e. after doing it, I can no longer import
the modules in my Python interpreter).
我不太清楚-m选项的作用,但这个方法似乎对我有效(即在我这样做之后,我再也无法在Python解释器中导入模块)。
#2
2
easy_install
did work for me.
easy_install确实对我有用。
I also was able to test that easy_install -m
short name worked. For example:
我还能够测试easy_install -m短名称是否有效。例如:
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也最终使用短名称。