时间:2011-11-02 15:42:39

标签: macos mercurial

我尝试安装graphicsmagick作为docsplit(http://documentcloud.github.com/docsplit/)安装说明的一部分

当我说:

> brew install --use-gcc --HEAD graphicsmagick

我得到了

Error: You must `easy_install mercurial'

我跑的时候

> sudo easy_install mercurial

我得到了一个巨大的python堆栈跟踪。

你可以在这里找到stacktrace:

http://pastebin.com/dwwjEc4j

1 个答案:

答案 0 :(得分:0)

它对我有用。您似乎在系统Python的目录搜索路径上的某个位置安装或安装了setuptools的开发版本。请注意回溯中的setuptools==0.6c12dev-r85381。这不是Apple在最终版本10.7中提供的版本。您应该能够通过执行以下操作查看从中导入的位置:

$ /usr/bin/python2.7
Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import setuptools
>>> setuptools.__file__
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/__init__.py'

这就是应该的样子。如果有不同的文件,请转到它所在的目录( not /System/Library)并删除包括setupttools.pth在内的setuptools的痕迹。您很可能定义了PYTHONPATH个环境变量,或者您会在setuptools中找到旧的/Library/Python

相关问题