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

后端 未结 29 2239
感动是毒
感动是毒 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:11

    This is showing some path issue:

    pip install graphviz
    

    So this worked for me:

    sudo apt-get install graphviz
    
    0 讨论(0)
  • 2020-12-02 06:12

    If you are not using Conda but vanilla Python, 'brew install graphviz' works.

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

    You should install the graphviz package in your system (not just the python package). On Ubuntu you should try:

    sudo apt-get install graphviz
    
    0 讨论(0)
  • 2020-12-02 06:14

    I had the same issue on Linux with Jupyter.

    To solve it I've added the dot library to python sys.path

    First: check if dot is installed,

    Then:
    find his path whereis dot -> /local/notebook/miniconda2/envs/ik2/bin/dot

    Finally in python script : sys.path.append("/local/notebook/miniconda2/envs/ik2/bin/dot")

    0 讨论(0)
  • 2020-12-02 06:16
    conda install python-graphviz
    

    For Windows, install the Python Graphviz which will include the executables in the path.

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

    When solving this issue for myself, I used this GitHub tutorial, which analysed the cause of this issue. If we read in between the lines, it says it needs system as well as python graph viz. In addition to conda install, we would need to run:

    conda install -c conda-forge python-graphviz
    

    Then restart the kernel; it works like a charm.

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