0

installed the igraph package using conda install

conda install -c conda-forge igraph

it shows on anaconda index

anaconda index

and on anaconda prompt using conda list

anaconda prompt

but when I try to import it on jupyter notebook, I get:

jupyter notebook

5
  • What is the output of import sys; print(sys.executable) in the Jupyter console? Is it the same python executable as in the Anaconda installation?
    – Niko Fohr
    Apr 28, 2021 at 15:23
  • C:\Users\<myname>\Anaconda3\python.exe. I'm pretty sure it is
    – tgc
    Apr 28, 2021 at 15:32
  • Did you try the import without the Jupyter notebook?
    – Niko Fohr
    Apr 28, 2021 at 15:51
  • how do I do that?
    – tgc
    Apr 28, 2021 at 15:56
  • I mean, inside a regular python shell.
    – Niko Fohr
    Apr 28, 2021 at 16:02

1 Answer 1

0

You should install python-igraph not igraph, i.e. conda install -c conda-forge python-igraph. igraph is the C core, while python-igraph is the Python interface of igraph.

1
  • Maybe it needs a description? I see an empty description field in the OP's screenshot.
    – Szabolcs
    Apr 29, 2021 at 12:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.