0

I installed pygraphviz by following the instruction here: Installing pygraphviz on windows

I am getting an import error while importing pygraphviz: I do have graphviz installed in my system

import pygraphviz Traceback (most recent call last): File "C:\Users\Prajnan_Goswami\AppData\Local\Programs\Python\Python36\lib\site-packages\pygraphviz\graphviz.py", line 18, in swig_import_helper fp, pathname, description = imp.find_module('_graphviz', [dirname(file)]) File "C:\Users\Prajnan_Goswami\AppData\Local\Programs\Python\Python36\lib\imp.py", line 297, in find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named '_graphviz'

Could someone tell me if I am missing something. Thanks.

Pragyan93
  • 701
  • 2
  • 9
  • 18

1 Answers1

0

You need to add graphviz to your PATH so that it can correctly locate the module.

Peaksandpeaks
  • 57
  • 1
  • 8