keras plot_model tells me to install pydot
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
is a Python package.- GraphViz is a collection of tools written in C for computing graph layouts
graphviz
is a Python package entirely unrelated topydot
. These two Python packages do not interact in any way with each other. Installing one of them should suffice (together with GraphViz).
See also:
- https://github.com/erocarrera/pydot/issues/126
- https://github.com/erocarrera/pydot/commit/812e3c40dac1e0225391481073c64da5bafba93e#commitcomment-18236709
- https://github.com/erocarrera/pydot/commit/812e3c40dac1e0225391481073c64da5bafba93e#commitcomment-18222580
and links from there.
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.