pydot.InvocationException: GraphViz's executables not found

后端 未结 11 761
自闭症患者
自闭症患者 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 03:59

    I was facing the same issues, my problem got resolved using:

    1. Run the command sudo port install graphviz
    2. If error is coming for the port then first install port from below based on the version you are using https://guide.macports.org/chunked/installing.macports.html
    3. After installation of port run command sudo port install graphviz

    Restart the python kernel if you are using iPython and run again.

提交回复
热议问题