“RuntimeError: Make sure the Graphviz executables are on your system's path” after installing Graphviz 2.38

后端 未结 29 2237
感动是毒
感动是毒 2020-12-02 06:00

I downloaded Graphviz 2.38 MSI version and installed under folder C:\\Python34, then I run pip install Graphviz, everything went well.

相关标签:
29条回答
  • 2020-12-02 06:02

    I'm on macOS Catalina 10.15.3, and I had a similar error: ExecutableNotFound: failed to execute ['dot', '-Tsvg'], make sure the Graphviz executables are on your systems' PATH

    Fixed it with:

    pip3 install graphviz AND brew install graphviz

    Note the pip3 install will only return the success message Successfully installed graphviz-0.13.2 so we still need to run brew install to get graphviz 2.42.3 (as of 10 Mar 2020, 6PM).

    0 讨论(0)
  • 2020-12-02 06:02

    1.install windows package from: https://graphviz.gitlab.io/_pages/Download/Download_windows.html and download msi file

    Add in Environmental variables 2. Add C:\Program Files (x86)\Graphviz2.38\bin to User path

    1. Add C:\Program Files (x86)\Graphviz2.38\bin\dot.exe to System Path

    2. Restart your python notebook.

    It will work.

    0 讨论(0)
  • 2020-12-02 06:03
    import os
    os.environ["PATH"] += os.pathsep + "/Macintosh HD⁩/anaconda3⁩/lib⁩/⁨python3.7⁩/site-packages⁩/sphinx⁩/templates⁩/graphviz"
    

    This solved the PATH issue on MAC for me!

    0 讨论(0)
  • 2020-12-02 06:05

    For Windows:

    1. Install windows package from: https://graphviz.gitlab.io/_pages/Download/Download_windows.html
    2. Install python graphviz package
    3. Add C:\Program Files (x86)\Graphviz2.38\bin to User path
    4. Add C:\Program Files (x86)\Graphviz2.38\bin\dot.exe to System Path

    This worked for me!

    0 讨论(0)
  • 2020-12-02 06:05

    Just add below to your Environmental Variable(system) PATH on Windows

    C:\Program Files (x86)\Graphviz2.38\bin

    there, you can find .exe files

    If not work

    Find Graphviz2.38/bin folder in your Program Files not in python lib

    Then, add to your PATH

    It's important to find a folder where .exe files exist

    0 讨论(0)
  • 2020-12-02 06:05

    trying doing this in python import sys !conda install --yes --prefix {sys.prefix} graphviz import graphviz

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