I’ve installed a couple of Python modules using easy_install. How do I uninstal开发者_运维知识库l them?
I couldn’t see an uninstall option listed in 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 (i.e. after doing it, I can no longer import
the modules in my Python interpreter).
easy_install
did work for me.
I also was able to test that easy_install -m
short name worked. 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.
精彩评论