title: Persistent error: pydot and graphviz ('Failed to import pydot)
body: <pre><code>   from tensorflow.keras.models import load_model
  </code></pre>
  <p>I am working from Spyder and on windows 10. I have tried almost any solutions available on the stackoverflow and internet, and still having the same problem. When I install pydot, graphviz, pydot-ng, either through conda, or pip or pip3, and manually installing graphviz through windows insaller and adding its path to the system, I still get the same error as below:</p>
  <pre><code>    plot_model(model, to_file='model_plot.png', show_shapes=True, show_layer_names=True)
  </code></pre>
  <p>('Failed to import pydot. You must <code>pip install pydot</code> and install graphviz (<a href="https://graphviz.gitlab.io/download/" rel="nofollow noreferrer">https://graphviz.gitlab.io/download/</a>), ', 'for <code>pydotprint</code> to work.')</p>
  <p>On my spyder, when I say either of these, I get this error:</p>
  <pre><code>    ModuleNotFoundError: No module named 'pydot'
  </code></pre>
  <p>or:</p>
  <pre><code>    ModuleNotFoundError: No module named 'pydotplus'
  </code></pre>
  <p>I also restarted the kerner but did not help!</p>