title: Python - dot file to png file not found error
body: <p>I am trying to convert dot file into a png or jpeg file where I can view the Random Forest Tree. I am following this tutorial: <a href="https://towardsdatascience.com/how-to-visualize-a-decision-tree-from-a-random-forest-in-python-using-scikit-learn-38ad2d75f21c" rel="nofollow noreferrer">https://towardsdatascience.com/how-to-visualize-a-decision-tree-from-a-random-forest-in-python-using-scikit-learn-38ad2d75f21c</a>. </p>
  
  <p>I am getting error <code>FileNotFoundError: [WinError 2] The system cannot find the file specified</code></p>
  
  <p>I can see that tree.dot is there and I am able to open it. Trying to find why it is not reading it? Thanks. </p>
  
  <pre><code>from sklearn.datasets import load_iris
  iris = load_iris()
  
  # Model (can also use single decision tree)
  from sklearn.ensemble import RandomForestClassifier
  model = RandomForestClassifier(n_estimators=10)
  
  # Train
  model.fit(iris.data, iris.target)
  # Extract single tree
  estimator = model.estimators_[5]
  
  from sklearn.tree import export_graphviz
  # Export as dot file
  export_graphviz(estimator, out_file='tree.dot', 
                  feature_names = iris.feature_names,
                  class_names = iris.target_names,
                  rounded = True, proportion = False, 
                  precision = 2, filled = True)
  
  
  &lt;&lt;error occurs here&gt;&gt; 
  # Convert to png using system command (requires Graphviz)
  from subprocess import call
  call(['dot', '-Tpng', 'tree.dot', '-o', 'tree.png', '-Gdpi=600'])
  
  # Display in jupyter notebook
  from IPython.display import Image
  Image(filename = 'tree.png')
  </code></pre>