2011-11-02 99 views
-1

我试图为docsplit的安装说明部分(http://documentcloud.github.com/docsplit/)安装实:graphicsmagick麻烦在Mac OS X Lion的安装善变

当我说:

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

我得到

Error: You must `easy_install mercurial' 

当我运行

> sudo easy_install mercurial 

我得到一个巨大的python stacktrace。

,你可以在这里找到堆栈跟踪:

http://pastebin.com/dwwjEc4j 

回答

0

这对我的作品。您似乎在过去某处安装或安装了系统Python目录搜索路径的开发版本setuptools。请注意回溯中的setuptools==0.6c12dev-r85381。至少在最终的10.7版本中,这不是Apple提供的版本。你应该能够看到它正在从这样的输入:

$ /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' 

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