pydot.InvocationException: GraphViz's executables not found

后端 未结 11 764
自闭症患者
自闭症患者 2021-02-07 03:22

I try to run this example for decision tree learning, but get the following error message:

File \"coco.py\", line 18, in graph.write_pdf(\"iris.pdf

11条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-07 04:04

    I had the same issue when installing pydot and graphviz with pip, then I found the answer here.

    In particular, I first uninstalled pydot and graphviz which I separately installed using pip (using sudo pip uninstall pydot and the same for graphviz). Then, I run sudo apt-get install python-pydot which fixed the issue.

提交回复
热议问题