2015-04-12 80 views
2

我想知道是否有人有類似的問題,並找到了解決辦法?我正在嘗試在Mac OS X 10.10.2上使用Python 2.7.9 Anaconda 2.2.0安裝igraph。使用Python編譯igraph的C核的問題2.7.9 Mac OSX上的Anaconda 2.2.0 10.10.2

我設法brew install homebrew/science/igraph OK,但是當我嘗試pip install python-igraph我得到以下錯誤:

grep: /usr/lib/libiconv.la: No such file or directory 
     sed: /usr/lib/libiconv.la: No such file or directory 
     libtool: link: `/usr/lib/libiconv.la' is not a valid libtool archive 
     make[3]: *** [libigraph.la] Error 1 
     make[2]: *** [all] Error 2 
     make[1]: *** [all-recursive] Error 1 
     make: *** [all] Error 2 

    Extracting igraph-0.7.1.tar.gz... 
    Configuring igraph... 
    Could not download and compile the C core of igraph. 


    ---------------------------------------- 
    Command "/Users/Angela/anaconda/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/x5/_j73bjsn10b5q1y_z904g3n40000gn/T/pip-build-nR59Ui/python-igraph/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/x5/_j73bjsn10b5q1y_z904g3n40000gn/T/pip-e3LVvv-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/x5/_j73bjsn10b5q1y_z904g3n40000gn/T/pip-build-nR59Ui/python-igraph 

我有相同的結果試圖sudo pip了。在任何建議試下這將是大加讚賞

回答

3

找到了解決辦法,我只好brew install pkg-config第一,希望這有助於其他人使用相同的錯誤

+0

我'PKG-config'已經安裝,但得到的與上面相同的錯誤。任何其他建議對我來說? – sAguinaga

+0

發現此電子郵件由Tamas [here](http://lists.nongnu.org/archive/html/igraph-help/2013-08/msg00057.html)建議做'./configure --disable- -graphml'。我這樣做,並運行'make',並得到* igraph *在Mac OS X上編譯10.10.3 – sAguinaga

+0

這也適用於我!非常感謝你,我正在走出我的想法。 –