Graphviz's executables are not found (Python 3.4)

后端 未结 26 1251
故里飘歌
故里飘歌 2020-11-29 05:00

I am running Python3.4 on Windows 7. I am trying to use the Python interface for graphviz. This is a script I intend to run:

from graphviz import Digraph
imp         


        
26条回答
  •  有刺的猬
    2020-11-29 05:36

    I had the same issue on Ubuntu(14.04) 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")

提交回复
热议问题