Keras: “RuntimeError: Failed to import pydot.” after installing graphviz and pydot

后端 未结 12 1203
我在风中等你
我在风中等你 2020-12-03 04:58

I\'m using Anaconda Python 2.7 on windows 10

I was planning on doing Keras visualization so (whilst spyder was open) I opened the Anaconda command prompt and pip ins

12条回答
  •  误落风尘
    2020-12-03 05:15

    If you are using an Anaconda environment, you'd better install pydotplus and graphviz via conda install.

    conda install graphviz
    conda install pydotplus
    

    Note: You'd better update your Keras to the newest version (2.0.9+), it can automatically check and choose which one of pydotplus,pydot-ng,pydot to be used. pydot-ng has been unmaintained for a long time, and it only supports py3.4- and py2.7.

提交回复
热议问题