Qinbf / plot_model

plot model for Tensorflow/Keras
MIT License
36 stars 15 forks source link

ERRO plot_model(model) #4

Open alefjonathan29 opened 2 years ago

alefjonathan29 commented 2 years ago

When I run the plot_model function getting the following error:

ImportError Traceback (most recent call last) in () 5 from plot_model import plot_model 6 ----> 7 plot_model(model)

1 frames /usr/local/lib/python3.7/dist-packages/plot_model/plot_model.py in model_to_dot(model, show_shapes, show_layer_names, rankdir, expand_nested, dpi, style, color, subgraph) 87 ImportError: if graphviz or pydot are not available. 88 """ ---> 89 from tensorflow.python.keras.layers import wrappers 90 from tensorflow.python.keras.engine import sequential 91 from tensorflow.python.keras.engine import network

ImportError: cannot import name 'wrappers' from 'tensorflow.python.keras.layers' (/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/layers/init.py)

NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the "Open Examples" button below.