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

后端 未结 12 1208
我在风中等你
我在风中等你 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:31

    What I did is followed.

    import keras
    import pydotplus
    from keras.utils.vis_utils import model_to_dot
    keras.utils.vis_utils.pydot = pydot
    
    plot_model(your_model_name, to_file='model.png')
    

    That's worked for me. On mac Anaconda python=3.6.8

提交回复
热议问题