Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work. Graphviz下载问题

这里是keras的win环境下Graphviz,之前跑xgboost后来可视化时候的问题,在GAN里面使用的时候又出问题了,报错是Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.说的是没有办法导入pydot包。

解决方式是:

①下载pydot和graphviz

pip install graphviz

pip install pydot

②上官方网站下载graphviz,选择graphviz-2.40.1.tar.gz下载,解压至文件夹

③进入环境变量path,将解压文件夹后windows下的bin路径加入进去

按照给的源文件,应该都是这个文件分级graphviz-2.40.1\windows\bin

解决方法来自Keras: “RuntimeError: Failed to import pydot.” after installing graphviz and pydot

你可能感兴趣的:(包&环境问题)