Programmers learn & share
0 votes

Problem :

I am getting following pydot error

importerror: failed to import pydot. you must install pydot and graphviz for `pydotprint` to work.

by (6.9k points)  
edited by | 775 views

1 Answer

0 votes

Solution :

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.

Further Readings :

by (36.1k points)  
2,187 questions
2,514 answers
241 users