Unable to import igraph (Python2.7) after installation on OSX
I am trying to use the iGraph python module on my iMac running OSX 10.9.4. I followed the steps on the first page of igraphs to install on Mac, when I go to import the igraph from terminal, this is what I get.
Python 2.7.5 (default, Mar 9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import igraph
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named igraph
Here are the steps I tried to install igraph:
I had some problems with my pkg-config not writable (I am new to homebrew) so I followed these steps
-
brew install homebrew/science/igraph
I like here and tied with the formulabrew link igraph
, and she does not cook without problems. -
pip install python-igraph
also finished cleanly.
From the igraphs documentation, this is all I need to do.
I looked at this answer but was unable to get the following line to work.
DYLD_LIBRARY_PATH=/usr/local/lib python -m igraph.test.__init__
/usr/bin/python: No module named igraph.test
This could mean where the problem is, but I don't know where to go from here.
Other information:
I have python installed via brew, but I'm not sure if this is causing a conflict. Regardless, Python2.7 should be the default python. I have installed other modules like numpy, scipy and matplotlib with no problem.
Let me know if you need any other information.
source to share
No one has answered this question yet
See similar questions:
or similar: