On running this line - Image(graph.create_png()) , I am getting error that “Graphviz’s executables not found” . Please tell what to do. I have imported all the libraries as told by sir in the video.
Problem in Visualising Decision Trees using Grapviz
Hey @abhaygarg2001, have you installed the graphviz package using
conda install graphviz
??
After conda install graphviz
you have to add to the PATH:
To modify PATH goto Control Panel > System and Security > System > Advanced System Settings > Environment Variables > Path > Edit > New
Then copy paste the path here, in my case it is:
C:\Users\Aayush\Anaconda3\Library\bin\graphviz
(wherever you have installed)
then click OK
Hope this helps.
Happy coding
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.