I\'m using python 3.6.3 on a windows 10 machine. I installed pydot and graphviz using pip install via:
py -m pip install pydot
py -m pip install grap
Complementing @Ioannis answer, you have to install GraphViz executables via conda (conda install GraphViz).
For my case, after installing GraphViz I tried with the latest pydot (pip install pydot) and the error was resolved.
The path(s) to the installed GraphViz executables (dot, neato, etc.) need to be in the PATH environment variable, in order for pydot to find them. pydot used to search for those executables in earlier versions, but not any more.
Also:
pydot. These two Python packages do not interact in any way with each other. Installing one of them should suffice (together with GraphViz).See also:
and links from there.
Just to complete the @dataLeo 's solution, Python 3 users can use pydotplus package instead of pydot-ng package. To summarize:
import pydot to
import pydotplus as pydot.PS: You can locate the vis_utils.py file by checking help for plot_model command in ipython console, i.e. after from keras.utils import plot_model, type ??plot_model in ipython console.
Tested on Windows 10-64 bit with Anaconda python-3.6