Keras plot_model tells me to install pydot

I am 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 graphviz 

I also went to the graphviz website and downloaded and installed the Windows version here: http://www.graphviz.org/Download_windows.php , which is installed by default for program files (x86). But when I am going to sketch my model in keras, I still get a message that I need to install pydot and graphviz and that the import failed. I can do

  import pydot import graphviz 

on my python console just fine they don't cause errors. What else should I do to be able to display my neural network?

+1
source share
1 answer

The path to the installed GraphViz executable files ( dot , neato , etc.) must be in the PATH environment of the variable so that pydot finds them. pydot used to search for these executables in earlier versions, but no more .

also:

  • pydot is a Python package.
  • GraphViz is a C toolkit for calculating graph schemes
  • graphviz is a Python package that is completely unrelated to pydot . These two Python packages in no way interact with each other. Installing one of them should be sufficient (together with GraphViz).

See also:

and links from there.

+4
source

Source: https://habr.com/ru/post/1273809/


All Articles