Why is pydot unable to find GraphViz's executables in Windows 8?

前端 未结 27 2731
醉酒成梦
醉酒成梦 2020-11-27 14:26

I have GraphViz 2.32 installed in Windows 8 and have added C:\\Program Files (x86)\\Graphviz2.32\\bin to the System PATH variable. Still pydot is unable to find its executab

27条回答
  •  醉话见心
    2020-11-27 14:39

    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.

    1. Install GraphViz if you haven't already (I used the MSI download)
    2. Get the path for gvedit.exe (for me it was "C:\Program Files (x86)\Graphviz2.34\bin\")
    3. Add this path to the computer's PATH
    4. 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
    5. Click Edit User path
    6. Add this string to the end of your Variable value list (including semicolon): ;C:\Program Files (x86)\Graphviz2.34\bin
    7. Click OK
    8. Restart your Python IDE

提交回复
热议问题