2011-11-02 79 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