‘`pydot` failed to call GraphViz.‘

写了一个fcn网络结构,准备将网络结构画出来,却报错了:'`pydot` failed to call GraphViz.'

我记得我安装过GraphViz,还花了一番功夫,怎么又报错呢GraphViz安装

然后:pip install pydot仍然抱错

其实是pydot的原因,由于pydot已经停止开发了,pyhn3.5和 python36已经用不起来。

解决方案是

第一步:先卸载掉已经安装的pydot:

  pip uninstall pydot 

第二步:安装pydotplus

pip install pydotplus 

第三步:修改

D:\anaconda\Lib\site-packages\keras\utils\vis_utils.py

然后找到 keras里面的 utils\vis_utils.py,把里面的pydot的都替换成 pydotplus

搞定!!!!

‘`pydot` failed to call GraphViz.‘_第1张图片

参考博客

‘`pydot` failed to call GraphViz.‘_第2张图片

 

你可能感兴趣的:(debug,keras,bug)