免责声明:网站内容仅供个人学习记录,禁做商业用途,转载请注明出处。

版权所有 © 2017-2020 NEUSNCP个人学习笔记 辽ICP备17017855号-2

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

neunms    2020年1月14日 20:47:37

模型可视化过程中需要使用
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
最近更新: 2020年6月6日 21:16:33
浏览: 1.9K

[[total]] 条评论

添加评论
  1. [[item.time]]
    [[item.user.username]] [[item.floor]]楼
  2. 点击加载更多……
  3. 添加评论