问题
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.
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
I have tried sudo pip too with the same results. Any suggestion on what to try next would be much appreciated
回答1:
Found a solution, I had to brew install pkg-config first, hope this helps anyone else with the same error
来源:https://stackoverflow.com/questions/29589696/problems-compiling-c-core-of-igraph-with-python-2-7-9-anaconda-2-2-0-on-mac-osx