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

标签 python mercurial eclipse-plugin osx-lion

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

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

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

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

谢谢戴夫

完整的错误消息如下:

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)

最佳答案

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

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

关于python - Eclipse 的 Mercurial 插件找不到 Python——如何修复?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7261451/

相关文章:

mercurial - 如何保持 mercurial graph "flat"

Eclipse插件可查找类/包中未使用的方法

python - ipython事后调试: scope of outer function

python - 如何在 crontab + 虚拟环境中运行自定义 manage.py?

mercurial - Revert for mercurial 上的通用无备份

eclipse - 如何获取与 Eclipse 中的 propertyChanged 事件关联的 IResource?

java - JAutodoc:getter 注释模板与默认注释行为合并

Python 3 中心三角形

python - Pytest 在固定装置之前调用 setup()

mercurial - 使用 hg cp --after 的效果修改提交