I have installed igraph on Pycharm for Windows.
import igraph
yields no errors.
import igraph
print igraph.__version__
yields: 0.1.5.
import igraph
dir(igraph)
yields nothing...
import igraph
g = igraph.Graph(1)
yields:
Traceback (most recent call last):
File "C:/Users/Margaret/PycharmProjects/untitled/trial.py", line 2, in g = igraph.Graph(1)
AttributeError: 'module' object has no attribute 'Graph'
Does anyone know what the issue might be? I've looked at all the previously asked questions I could find and I haven't found an answer that will work for my case. Thanks.
igraph
, but with 0.7.1, your code works as you expected. Is it possible to update? – jedwardsdir(igraph)
returns a bunch of stuff. – Nir Alfasipip install python-igraph
? orpip install igraph
? you should use the former! in case you ran the latter, it will seem to be installed but it's messed up... – Nir Alfasiprint dir(igraph)
. – Peter Woodpip install python-igraph
– Peter Wood