I am trying to display the tree output , but when I run the script below, I receive an error like :
InvocationException: GraphViz\'s executables not found
The answer from Vermundir helped resolve mine.
However, regarding step 9, you need to be certain of the correct path to enter. Python error in my case did not contain any path. To find the correct path to the bin directory in anaconda3 (where you need to append \graphviz
), run the following 2 lines of code on ipython:
import os
os.environ
Scan through the output of os.environ, you will find the path to anaconda3 bin directory under 'PATH' list. For instance, you may find a path like this:
C:\\Users\\your_username\\AppData\\Local\\Continuum\\anaconda3\\Library\\bin
Then append \graphviz
to that path as shown below:
C:\Users\your_username\AppData\Local\Continuum\anaconda3\Library\bin\graphviz
This is the path you enter in step 9 when you Click "New".