Eclipse 的 Mercurial 插件找不到 Python——如何修复?

发布于 2024-12-02 11:39:40 字数 1483 浏览 0 评论 0原文

我使用的是 Mac OS X 10.7.1 (Lion)。我刚刚下载了适用于 Java EE 开发人员的 Eclipse IDE 的新副本,并安装了 Mercurial 插件。我收到以下错误消息:

中止:在 [...分类 Python 目录...] 中找不到 Mercurial 库。

我确实安装了 Python 2.6.1 和 3.2.1。我还有一个目录 System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7,它位于它查找 Mercurial 库的位置列表中。 hg -y debuginstall 给了我同样的消息。

这些库的名称是什么,当我安装插件时 Eclipse 可能会将它们放在哪里,以及如何告诉 Eclipse 它们在哪里(或者我应该将它们移动到哪里)?

谢谢,戴夫

完整错误消息如下:

中止:找不到 Mercurial 库 [/usr/platlib/Library/Python/2.6/site-packages /usr/local/bin /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC /Library/Python/2.7/site-packages](检查您的安装和 PYTHONPATH)

I'm on Mac OS X 10.7.1 (Lion). I just downloaded a fresh copy of Eclipse IDE for Java EE Developers, and installed the Mercurial plugin. I get the following error message:

abort: couldn't find mercurial libraries in [...assorted Python directories...].

I do have Python 2.6.1 and 3.2.1 installed. I also have a directory System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7, which is on the list of places it looked for the Mercurial libraries. hg -y debuginstall gives me the same message.

What are these libraries named, where is Eclipse likely to have put them when I installed the plugin, and how do I tell Eclipse where they are (or where should I move them to)?

Thanks, Dave

Full error message follows:

abort: couldn't find mercurial libraries in
[/usr/platlib/Library/Python/2.6/site-packages /usr/local/bin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC
/Library/Python/2.7/site-packages] (check your install and PYTHONPATH)

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

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

发布评论

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

评论(2

浮生面具三千个 2024-12-09 11:39:40

没有人回答我,但我找到了答案。也许它会对某人有所帮助。

我终于意识到,由于命令行中的“hg -y debuginstall”给了我同样的错误消息,所以这根本不是 Eclipse 问题(废话)。重新安装较新版本的 Mercurial 解决了该问题。

Nobody answered me, but I figured out the answer. Maybe it will help someone.

I finally realized that since 'hg -y debuginstall' at the command line was giving me the same error message, it wasn't an Eclipse problem at all (duh). Reinstalling a newer version of Mercurial solved the problem.

伴我心暖 2024-12-09 11:39:40

我在 mac 上安装了两次 Mercurial。
一个是直接安装的,另一个是使用macport安装的。
删除直接安装解决了问题。

  1. 使用删除直接安装
    easy_install -m Mercurial

  2. 将“Mercurial Executable”路径更新为“/opt/local/bin/hg”
    Eclipse->首选项->团队->Mercurial->

  3. 重启eclipse

I had two installation of mercurial in mac.
One was installed directly and another using macport.
Removing the direct installation solved the problem.

  1. Remove the direct installation using
    easy_install -m mercurial

  2. Update "Mercurial Executable" path to "/opt/local/bin/hg"
    Eclipse->Preference->Team->Mercurial->

  3. Restart eclipse

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