No module named 'graphviz'

I am using PyCharm community edition 2020.3. After upgrading, it isn't recognizing graphviz package.

Traceback (most recent call last):
File "C:\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3418, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-12-4beb1b17c5b2>", line 1, in <module>
from graphviz import Source
File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1.2\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'graphviz'

 

I have installed graphviz and python-graphviz as per https://stackoverflow.com/questions/50103486/installation-graphviz-no-module-named-graphviz.

Importing the package from jupyter works well. It doesn't work with PyCharm. Please let me know if you need any debug info.

Can someone please look into this?

0

Please sign in to leave a comment.