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

前端 未结 27 2564
醉酒成梦
醉酒成梦 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:36

    For windows 8.1 & python 2.7 , I fixed the problem by following below steps

    1 . Download and install graphviz-2.38.msi https://graphviz.gitlab.io/_pages/Download/Download_windows.html

    2 . Set the path variable

    Control Panel > System and Security > System > Advanced System Settings > Environment Variables > Path > Edit add 'C:\Program Files (x86)\Graphviz2.38\bin'

    1. Restart your currently running application that requires the path
    0 讨论(0)
  • 2020-11-27 14:36

    I too had the same issue and I finally resolved it by having a look at the library.

    The library considers making the path set as C:\Program Files\ATT\Graphviz\bin but by default Graphviz is installed to C:\Program Files(x86)\Graphviz undergoing the 32-bit criteria hence the pydot fails in getting the required path. Simply shift the directory as required by the script and you're good to go.

    P.S.:- Consider making the equivalent changes to the Environmnet Variable.

    P.S.S:- Also check if Graphviz is directly under Program Files(x86) or under ATT.

    0 讨论(0)
  • 2020-11-27 14:37

    install Graphviz here and add its bin path solved my problem

    https://graphviz.gitlab.io/_pages/Download/Download_windows.html

    pip install Graphviz itself seems inadequate

    0 讨论(0)
  • 2020-11-27 14:38

    I'm working on Windows 10 with Anaconda 3.6.5. I have not admin rights, so if someone is under the circumstances like me this solution works perfectly.

    The path for my graphviz is looks C:\Users\User_Name\AppData\Local\Continuum\anaconda3\Library\bin\graphviz

    In Spyder or in Jupyter type the following:

    import os os.environ['PATH'].split(os.pathsep) This will lists all the path in you environment. Take a look to them, if your graphviz path is not here, then go find it and copy the path, like above in my example. Then type the following: os.environ['PATH'] += os.pathsep + 'C:\\Users\\User_Name\\AppData\\Local\\Continuum\\anaconda3\\Library\\bin\\graphviz'

    That's all, but note that you have to run these command every time if you restart kernel

    0 讨论(0)
  • 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
    0 讨论(0)
  • 2020-11-27 14:40

    You need to install from Graphviz and then just add the path of folder where you installed Graphviz and its bin directory to system environments path.

    0 讨论(0)
提交回复
热议问题