21

似乎 Mercurial 不能在 Mavericks (Python 3) 上运行。任何人都可以找到解决方案。

abort: couldn't find mercurial libraries in [
    /Library/Python/2.7/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)
4

7 回答 7

21

升级到 OX 10.9 Mavericks 后,我昨晚遇到了类似的问题。注意:我正在使用 homebrew,我尝试过 brew install hgbrew update它们没有用,因为每个人的系统都不同,我建议运行 brew doctor 看看你的具体问题是什么,在我的情况下,我有以下情况;

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these: mercurial

所以为了解决我的反复无常的问题,我跑了;

brew link --overwrite mercurial

于 2013-10-23T15:17:24.473 回答
6

现在,这一切都适用于最新的 Homebrew。如果您没有安装 Homebrew,您可以在http://brew.sh找到它以及简单的说明。

一旦你有了 Homebrew,我建议你做

$ brew update
$ brew upgrade

要安装 Mercurial,只需执行

$ brew install hg

无痛。

于 2014-03-16T00:04:22.853 回答
4

尝试

$ sudo pip uninstall mercurial

其次是

$ sudo pip install mercurial

编辑:如果你没有pipeasy_install pip首先。

于 2013-10-23T14:43:24.450 回答
4

Mavericks 确实安装了 python 2.7.5,所以 Mercurial 应该可以正常运行。如果 python 的路径发生更改,您可能只需要修复或重做安装。

于 2013-10-23T15:10:50.550 回答
3

https://www.mercurial-scm.org/downloads
mercurial 2.8-rc 更新似乎也有效。(网站较早关闭)

于 2013-10-23T15:11:04.423 回答
1

安装 mercurial 的唯一方法是下载这个 zipfile。它适用于 osx 10.9,它适用于https://www.mercurial-scm.org/mac/binaries/Mercurial-2.9.2-py2.7-macosx10.9.zip

于 2014-04-29T22:09:15.737 回答
0

尝试

sudo easy_install -U mercurial

取自这里:Mountain Lion 更新和 mercurial 库 python

于 2014-02-17T06:00:25.710 回答