在anaconda下安装keras的plot_model环境
先安装pip install pydot-ng
pip install graphviz
pip install pydotplus
这里一般都是安装的pydot,但是它已经停止开发了,python3.5以上已经用不起来了。对策是:
pip install pydotplus,然后找到keras里面的utils\vis_utils.py,把里面的pydot的都替换成pydotplus。
如果仍出现错误的话
例如这个:
OSError: pydot failed to call GraphViz.Please install GraphViz (https://www.gr