3
tf.keras.utils.plot_model(model, to_file='model.png', show_shapes=True, show_layer_names=True)

('You must install pydot (pip install pydot) and install graphviz (see instructions at https://graphviz.gitlab.io/download/) ', 'for plot_model/model_to_dot to work.') I have already installed the packages and still it is not working, I tried to uninstall and re-install but it didn't help.

import pydot
import pydotplus
import graphviz

strangely when I import the packages in the cell just above it works fine and gives no error, how can I solve this issue? TIA

hasu33
  • 1,891
  • 2
  • 4
  • 8

1 Answers1

0

I had the same problem and my PC is Windows. So I downloaded Graphviz for windows on the GraphViz website AND downloaded it with PIP, then it worked

  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 07 '22 at 21:25