• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
88 views

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

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 (30.3k points)  
...