I have anaconda installed in my Mac. I am trying to install python-igraph.
I tried the following commands to install it:
$ brew install igraph
$ pip install python-igraph
My python setup:
Python 2.7.13 |Anaconda custom (x86_64)| (default, Dec 20 2016, 23:05:08)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin`
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
But when I try to import igraph
, I get the following error:
>>> import igraph
Traceback (most recent call last):
File "", line 1, in
File "/Users/arefindk/anaconda2/lib/python2.7/site-packages/igraph/init.py", line 34, in
from igraph._igraph import *
ImportError: dlopen(/Users/arefindk/anaconda2/lib/python2.7/site-packages/igraph/_igraph.so, 2): Symbol not found: _iconv
Referenced from: /Users/arefindk/anaconda2/lib/python2.7/site-packages/igraph/_igraph.so
Expected in: flat namespace
in /Users/arefindk/anaconda2/lib/python2.7/site-packages/igraph/_igraph.so
Now, I have tried to follow all the steps that is provided in this answer.
My hunch is, it might be a problem related to Anaconda because my friend successfully installed and imported python-igraph using the above commands and he doesn't have Anaconda installed.
How can I both solve this problem and keep Anaconda in my Mac?