>>> keras.utils.plot_model(model)
Traceback (most recent call last):
File "/home/user/dev/git/py_test/python/hongong/ch08/test_08_2.py", line 29, in
keras.utils.plot_model(model)
File "/home/user/.local/lib/python3.8/site-packages/tensorflow/python/keras/utils/vis_utils.py", line 322, in plot_model
dot = model_to_dot(
File "/home/user/.local/lib/python3.8/site-packages/tensorflow/python/keras/utils/vis_utils.py", line 114, in model_to_dot
raise ImportError(message)
ImportError: ('You must install pydot (pip install pydot
) and install graphviz (see instructions at https://graphviz.gitlab.io/download/) ', 'for plot_model/model_to_dot to work.')
1. Python package install
$ pip install pydot
$ pip install graphviz
(optional)
$ pip install pydotplus
2. Ubuntu package install
$ sudo apt install graphviz
'개발 > Python' 카테고리의 다른 글
PyCharm PEP8 setting (0) | 2021.06.18 |
---|---|
PyTorch CPU version install (Windows / Linux) (PIP / Anaconda) (0) | 2021.06.18 |
Python runtime measurement (0) | 2021.06.11 |
Anaconda3 Update (0) | 2021.06.09 |
파이썬 가상 환경 만들기 (0) | 2021.06.01 |