我想知道是否有人遇到类似的问题并找到解决方案?我试图在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
同样的结果。关于下一步尝试的任何建议都将非常感激
答案 0 :(得分:3)
找到一个解决方案,我必须先brew install pkg-config
,希望这可以帮助其他人犯同样的错误