Pydot won't create a graph
<p>yesterday I added pydot package by installing it via pip in command line.
I can import the package and even create an object, but when I want to create a graph by:</p>

<pre><code>graph.write_jpg('example1_graph.jpg')
</code></pre>

<p>I get the following error:</p>

<pre><code>Exception: "dot.exe" not found in path.
</code></pre>

<p>Try manually adding the Graphviz\bin folder to your systems PATH.</p>

<pre><code>&gt;&gt;&gt; import pydot
&gt;&gt;&gt; pydot.find_graphviz()
{'dot': 'C:\\Program Files (x86)\\Graphviz 2.28\\bin\\dot.exe'} #...
&gt;&gt;&gt; print pydot.find_graphviz.__doc__
"""
Locate Graphviz's executables in the system.

    Tries three methods:

    First: Windows Registry (Windows only)
    This requires Mark Hammond's pywin32 is installed.

    Secondly: Search the path
    It will look for 'dot', 'twopi' and 'neato' in all the directories
    specified in the PATH environment variable.

    Thirdly: Default install location (Windows only)
    It will look for 'dot', 'twopi' and 'neato' in the default install
    location under the "Program Files" directory.

    It will return a dictionary containing the program names as keys
    and their paths as values.

    If this fails, it returns None.
"""
</code></pre>

python pydot