Keras’ print model error: Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.

    1. install pydot

CONDA install pydot

    if the above error still occurs, restart Spyder or the computer.  install pydot

Read More: