title: How do I make sure the Graphviz executables are on my system's PATH?
body: <p>I am working with Graphviz using Python 3 on Sublime Text 3. When I run this code:</p>
  
  <pre><code>data = tree.export_graphviz(dtGini[55], out_file = None)
  graph = graphviz.Source(data)
  graph.render("testingthis")
  </code></pre>
  
  <p>I get these errors:</p>
  
  <pre><code>FileNotFoundError: [WinError 2] The system cannot find the file specified
  
  During handling of the above exception, another exception occurred:
  
  graphviz.backend.ExecutableNotFound: failed to execute ['dot', '-Tpdf', '-O', 'testingthis'], make sure the Graphviz executables are on your systems' PATH
  </code></pre>
  
  <p>It looks like it can't find the files it needs. In Sublime Text 3, my user settings for Conda are:</p>
  
  <pre class="lang-js prettyprint-override"><code>{
  // executable is the path to anaconda's python
  // this python executable is used in order to find conda
  "executable": "C:/ProgramData/Miniconda3/python.exe",
  
  // Directory in which the conda envs are stored
  // Default location is the user's home directory
  "environment_directory": "C:/ProgramData/Miniconda3/envs",
  
  // configuration is the path to conda's configuration file
  "configuration": "~/.condarc"
  }
  </code></pre>
  
  <p>I have these environment variables from my control panel:</p>
  
  <pre><code>C:\ProgramData\Miniconda3\Scripts\
  C:\ProgramData\Miniconda3\
  C:\ProgramData\Miniconda3\conda-meta\history
  C:\Users\X\AppData\Local\conda\conda\pkgs
  C:\Users\X\AppData\Local\conda\conda\pkgs\graphviz-2.38-hfd603c8_2\Library\bin
  C:\Users\X\AppData\Local\conda\conda\pkgs\graphviz-2.38-hfd603c8_2\Library\bin\dot.exe
  </code></pre>
  
  <p>In the Anaconda prompt, when I enter Python, hit enter, and then type in "import graphviz" I get no error. In Sublime Text 3, if I just have a file like graph.py</p>
  
  <pre><code>import graphviz
  </code></pre>
  
  <p>It executes without any errors.</p>
  
  <p>Any ideas on how I can solve this? It's driving me nuts. Thank you!</p>