GraphViz error - Decision Tree


I am getting this error and i tried reinstalling sklearn still getting same error.

Hey @aakritiaggarwal, you need to first install graphviz using this command,

!pip install graphviz

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:
Happy Learning :slight_smile:

Hey @Aayushkh_333,
I have already installed this library but still getting the same.
“InvocationException: GraphViz’s executables not found” error.

Hey @aakritiaggarwal use pip install graphviz (all small).
If it still doesn’t work, then use this method.

1. Download and install graphviz-2.38.msi (use the newest version) from https://graphviz.gitlab.io/_pages/Download/Download_windows.html
2. Set the path variable

Hope this cleared your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

        (a) Control Panel > System and Security > System > Advanced System Settings > Environment Variables > Path > Edit

        (b) add 'C:\Program Files (x86)\Graphviz2.38\bin'
1 Like

Thankyou!
Now it’s working.

1 Like

I also did fixed path variable but not working please tell me

Yes actually it is not working both in command prompt and anaconda.

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.

1 Like