pydot.InvocationException: GraphViz's executables not found

后端 未结 11 904
自闭症患者
自闭症患者 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条回答
  •  旧时难觅i
    2021-02-07 04:22

    On mac, use Brew to install graphviz and not pip, see links:

    graphviz information: http://www.graphviz.org/download/

    brew installation: https://brew.sh/

    So typing the following in the terminal after you install brew should work:

    brew install graphviz
    

提交回复
热议问题