Why is pydot unable to find GraphViz's executables in Windows 8?
Solution 1:
The problem is that the path to GraphViz was not found by the pydot module as shown in the traceback:
'GraphViz\'s executables not found'
I solved this problem on my windows 7 machine by adding the GraphViz bin directory to my computer's PATH. Then restarting my python IDE to use the updated path.
- Install GraphViz if you haven't already (I used the MSI download)
- Get the path for gvedit.exe (for me it was "C:\Program Files (x86)\Graphviz2.34\bin\")
- Add this path to the computer's PATH
- One way to get to environment settings to set your path is to click on each of these button/menu options: start->computer->system properties->advanced settings->environment variables
- Click Edit User path
- Add this string to the end of your Variable value list (including semicolon): ;C:\Program Files (x86)\Graphviz2.34\bin
- Click OK
- Restart your Python IDE
Solution 2:
On Mac brew install graphviz
solved the problem for me.
Solution 3:
This happened because I had installed graphviz after I had installed pydot. Hence, pydot wasn't able to find it. Reinstalling it in the correct order solved the problem.