I am getting following pydot error
importerror: failed to import pydot. you must install pydot and graphviz for `pydotprint` to work.
I also had faced the similar issue in the past.
I did bellow changes to resolve the issue.On mac Anaconda python=3.6.8
import keras import pydotplus from keras.utils.vis_utils import model_to_dot keras.utils.vis_utils.pydot = pydot plot_model(your_model_name, to_file='model.png')
That's worked for me.