参考:
https://zhuanlan.zhihu.com/p/32007274 评论区

pydot已经停止开发了,python3.5以上已经用不起来了。对策是:

pip uninstall pydot

pip install pydotplus

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

###############################################

  1. pip install pydotplus (不用安装pydot)
  2. 然后找到keras里面的utils\vis_utils.py,在最前面,加上一句, import pydotplus as pyplot
  3. graphviz 似乎有没有都无所谓

###################################################