Problem with graphviz, ExecutableNotFound error

Viewed 22

I have a problem with installing graphviz in PyCharm. Im using windows. I already installed graphviz library onto my PyCharm project, however error occurs when executing dot.render:

graphviz.backend.execute.ExecutableNotFound: failed to execute WindowsPath('dot')

I tried adding

import os
os.environ["PATH"] += os.pathsep + 'D:/Program Files (x86)/Graphviz2.38/bin/'

as said here: "RuntimeError: Make sure the Graphviz executables are on your system's path" after installing Graphviz 2.38

but it still doesent work?

any ideas?

Im new to pycharm and advanced coding in general, go easy please...

1 Answers

This is a very common problem. While it may have several causes (see suggestions above), the solution you found is out-of-date. Unfortunately, there are two software systems named Graphviz. You need both. Go here https://graphviz.gitlab.io/download/ and download the appropriate version. To check that you have installed the "real" Graphviz package, bring up a cmd window & type dot -V

Related