Setting up pydot for Python 3.5 and Keras, Conda, and Windows 64
In Keras you can use the function keras.utils.visualize_util.plot to create a image of your model. The problem is getting the function to not throw an error that looks like the following:
I went through several stackoverflow questions and forums to figure out what to do. This page had the most useful information. I ended up doing the following:
- Install graphviz for windows from the graphviz website.
- Add the directory bin of Graphviz to your environment variable “PATH”.
- Install pydot_ng in conda using the following command:
- Install Graphviz for Python 3.5.
After you have done the previous steps you should see similar output after running the following command:
Extra Information
If you look at the code for Keras here. You can see that Keras handles “pydot_ng”, which works with Python 3.5.