【Python】keras提示OSError: `pydot` failed to call GraphViz.Please install GraphViz (https://www.graphviz.org/)

neunms    2020-01-14 20:47

模型可视化过程中需要使用
from keras.utils import plot_model
plot_model(model, to_file='./model.png',show_shapes=True)

安装GraphViz过程中按网上的方法不行:
  1. 安装GraphViz
  2. 添加环境变量
  3. pip 安装pydot
尝试用conda conda forge安装GraphViz

直接输入命令:
​​​​​​​conda install GraphViz --channel conda-forge -y
​​​​​​​

原文链接:https://blog.csdn.net/u012950413/article/details/84929306
Last Modified: 2020-06-06 21:16
Views: 1.8K

[[total]] comments

Post your comment
  1. [[item.time]]
    [[item.user.username]] [[item.floor]]Floor
  2. Click to load more...
  3. Post your comment