title: graphviz : Why Does't it run _python
body: <pre><code>import graphviz
  with open('tree.dot') as f:
      dot_graph = f.read()
  graphviz.Source(dot_graph)
  </code></pre>
  <p>I am trying to visualize DecisionTree by iris_data
  but Graphviz is not running with the message below.</p>
  <blockquote>
  <p>CalledProcessError: Command '['dot', '-Kdot', '-Tsvg']' returned
  non-zero exit status 1. [stderr: b'There is no layout engine support
  for &quot;dot&quot;\r\nPerhaps &quot;dot -c&quot; needs to be run (with installer's
  privileges) to register the plugins?\r\n']</p>
  </blockquote>
  <p>Worked to solve</p>
  <ol>
  <li>again_ pip install graphviz</li>
  <li>set os path : graphviz    * ~\bin , \bin\dot.exe</li>
  <li>set os path : library    *\Anaconda3\Lib\site-packages\graphviz</li>
  <li>uninstall graphviz and do again</li>
  </ol>
  <p>I exactly install and set path and it seems to go well when it comes to graphviz_path. But, the error is still there. How can I handle it?</p>