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

发布于 2024-10-06 06:35:26 字数 175 浏览 0 评论 0原文

我使用 easy_install 安装了几个 Python 模块。我该如何卸载它们?

我看不到 easy_install --help 中列出的卸载选项。

I’ve installed a couple of Python modules using easy_install. How do I uninstall them?

I couldn’t see an uninstall option listed in easy_install --help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

爱格式化 2024-10-13 06:35:26

啊,我们开始吧:

$ easy_install -m PackageName

$ rm EggFile

我不太清楚 -m 选项的作用,但这个方法似乎对我有用(即在这样做之后,我不能再import 我的 Python 解释器中的模块)。

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).

浅笑轻吟梦一曲 2024-10-13 06:35:26

easy_install 确实对我有用。

我还能够测试 easy_install -m 短名称是否有效。例如:

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

pip uninstall mesos也最终使用短名称。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文