pydot.InvocationException: GraphViz's executables not found

后端 未结 11 908
自闭症患者
自闭症患者 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:22

    For windows users:
    1.install Graphviz
    2.Add Graphviz path to PATH variable
    3.Restart PyCharm or other compiler.

    As of version 2.31, the Visual Studio package no longer alters the PATH variable or accesses the registry at all. If you wish to use the command-line interface to Graphviz or are using some other program that calls a Graphviz program, you will need to set the PATH variable yourself.

提交回复
热议问题