繁体   English   中英

在Mac osx 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

我想知道是否有人遇到类似问题并找到解决方案? 我试图在Mac osx 10.10.2上使用Python 2.7.9 Anaconda 2.2.0安装igraph。

我设法brew install homebrew/science/igraph好,但当我尝试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 ,结果相同。 关于下一步尝试的任何建议都将非常感激

找到一个解决方案,我不得不先brew install pkg-config ,希望这可以帮助其他人同样的错误

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM