卸载 Easy_Install

发布于 2024-10-25 23:17:53 字数 555 浏览 4 评论 0原文

因此,我使用 stow从源代码安装了 Python 2.7.1。一个>。我过去一直很粗心,现在我在处理源安装时努力保持条理。所以,进入存储。现在,我使用 wget 安装了 easy_install 并运行 ez_setup.py 脚本。你瞧,在我无限的智慧/粗心中,我忘了把它妥善存放。

  1. 如何卸载 ez_setup 并从头开始?我看到有几个人在 SO 和网络上的其他地方提问,但是没有明确的答案。我是否只需卸载 .egg、.pth 文件就可以了?

  2. 这有关系吗?无论如何,我已经调整了我的 PATH 变量,而且我什至没有此框上的 su 访问权限。我安装到我自己的 Python 安装中,已经配置了 stow。

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

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

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

发布评论

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

评论(1

北音执念 2024-11-01 23:17:53

转到您的“site-packages”目录(查看您的 sys.path),然后运行:

rm -rf setuptools-*.egg pkg_resources.py easy_install.py setuptools/ setuptools-*.egg-info/

并删除 easy_install 二进制文件。我在编写 PyPM 常见问题解答。

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.

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