在Mac OS X 10.10.2上使用Python 2.7.9 Anaconda 2.2.0编译igraph的C核心时出现问题 [英] Problems compiling C core of igraph with Python 2.7.9 Anaconda 2.2.0 on Mac osx 10.10.2

查看:70
本文介绍了在Mac OS X 10.10.2上使用Python 2.7.9 Anaconda 2.2.0编译igraph的C核心时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人遇到过类似的问题并找到了解决方案?我正在尝试在Mac OS X 10.10.2上为Python 2.7.9 Anaconda 2.2.0安装igraph.

I wonder if anyone has had a similar issue to this and found a solution? I am trying to install igraph for with Python 2.7.9 Anaconda 2.2.0 on Mac osx 10.10.2.

我设法brew install homebrew/science/igraph确定,但是当我尝试pip install python-igraph时出现以下错误:

I managed to brew install homebrew/science/igraph OK but when I try to pip install python-igraph I get the following error:

   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,但结果相同.关于下一步尝试的任何建议将不胜感激

I have tried sudo pip too with the same results. Any suggestion on what to try next would be much appreciated

推荐答案

找到了一个解决方案,我必须首先brew install pkg-config,希望这对其他有相同错误的人有所帮助

Found a solution, I had to brew install pkg-config first, hope this helps anyone else with the same error

这篇关于在Mac OS X 10.10.2上使用Python 2.7.9 Anaconda 2.2.0编译igraph的C核心时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆