win10下Keras可视化报错:OSError: `pydot` failed to call GraphViz.

Window环境下keras的模型可视化,报错OSError: `pydot` failed to call GraphViz.Please install GraphViz (https://www.graphviz.org/) and ens

1、安装pydot

首先下载下面三个模块  

pip install graphviz  

pip install pydot  

pip install pydot_ng

2、安装GraphViz

http://www.graphviz.org/

win10下Keras可视化报错:OSError: `pydot` failed to call GraphViz._第1张图片

安装路径:D:\Program Files\Graphviz2.38

设置环境变量

win10下Keras可视化报错:OSError: `pydot` failed to call GraphViz._第2张图片

3、修改pydot.py

D:\Program Files\Anaconda3\Lib\site-packages\pydot.py

修改set_prog函数如下:

win10下Keras可视化报错:OSError: `pydot` failed to call GraphViz._第3张图片

修改create函数如下:

win10下Keras可视化报错:OSError: `pydot` failed to call GraphViz._第4张图片

4、可视化成功

win10下Keras可视化报错:OSError: `pydot` failed to call GraphViz._第5张图片

 

你可能感兴趣的:(深度学习实战)