"dot.exe" not found in path. Pydot on Python (Windows 7)

Don't use the following command if you are on Python 3:

conda install pydot-ng 

This will take your installation to Python 2.7

Use instead

conda install graphviz

Type conda install pydot graphviz in cmd, and then add the executables location directory C:\Anaconda3\pkgs\graphviz-2.38-hfd603c8_2\Library\bin\graphviz to your system path variable. That works!


I followed the instructions given in this blog.

Then I installed graphviz from here and added C:\Program Files (x86)\Graphviz2.38\bin to PATH.

Next I did:

conda install pydot-ng 

And finally in my notebook I added the two lines below.

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

Tags:

Python

Path

Pydot