fchollet / deep-learning-with-python-notebooks

Jupyter notebooks for the code samples of the book "Deep Learning with Python"
MIT License
17.95k stars 8.48k forks source link

Issue with keras.utils.plot_model -- Issue : You must install graphviz (see instructions at https://graphviz.gitlab.io/download/) for `plot_model` to work. #236

Open debdeepsanyal opened 3 months ago

debdeepsanyal commented 3 months ago

When i was about to execute keras.utils.plot_model() from a snippet in chapter - 07, i got the following error -- You must install graphviz (see instructions at https://graphviz.gitlab.io/download/) for "plot_model" to work.

Now, i have graphviz version 0.20.1 installed. im using keras version 3.0.5 and tensorflow version 2.16.1. and im running the code with a Python 3.12.1 kernel in VS code .ipynb notebook.

Can someone help me with this?

ifond commented 3 months ago

​ I have received your E-mail——Steven Lee

shenchenbing commented 3 months ago

'pip install pydot' is needed. And don't forget to set environment variable for graphviz. Try again if it works. I met this problem too when I was reading ch7. I don't remember if more setup steps are needed.