【问题标题】:Running Mercurial on Mavericks在小牛队上运行 Mercurial
【发布时间】:2013-11-01 21:37:22
【问题描述】:

似乎 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)

【问题讨论】:

    标签: python macos python-2.7 mercurial osx-mavericks


    【解决方案1】:

    升级到 OX 10.9 Mavericks 后,我昨晚遇到了类似的问题。 注意:我使用的是自制软件,我试过了 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

    【讨论】:

      【解决方案2】:

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

      一旦你有 Homebrew,我建议你这样做

      $ brew update
      $ brew upgrade
      

      要安装 Mercurial,只需这样做

      $ brew install hg
      

      无痛。

      【讨论】:

      【解决方案3】:

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

      【讨论】:

      【解决方案4】:

      试试

      $ sudo pip uninstall mercurial
      

      紧随其后

      $ sudo pip install mercurial
      

      编辑:如果你没有pip,请先easy_install pip

      【讨论】:

        【解决方案5】:

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

        【讨论】:

          【解决方案6】:

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

          【讨论】:

            【解决方案7】:

            试试

            sudo easy_install -U mercurial
            

            取自这里:Mountain Lion update and mercurial libraries python

            【讨论】:

              猜你喜欢
              • 1970-01-01
              • 1970-01-01
              • 1970-01-01
              • 2023-03-12
              • 1970-01-01
              • 1970-01-01
              • 2013-11-18
              • 1970-01-01
              • 2013-07-28
              相关资源
              最近更新 更多