关于Keras可视化遇到pydot failed to call GraphViz 的问题

一开始按照下面的顺序安装:

  1. 安装Graphviz:在graphviz的官网(网址:https://graphviz.gitlab.io/_pages/Download/Download_windows.html),选择Windows对应的mis文件进行下载。如graphviz-2.38.msi,下载安装,将bin文件夹对应的路径添加到path环境变量
  2. 安装pygraphviz:pip install graphviz
  3. 安装pydot:pip install pydot

但是还是遇到了错误OSError: pydot failed to call GraphViz.Please install GraphViz (https://www.graphviz.org/) and ensure that its executables are in the $PATH. 

查了很多资料,才知道pydot已经停止开发了,python3.5以上已经用不起来了。对策是:

pip uninstall pydot

pip install pydotplus

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

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值