Aaron Abrogena
Aaron Abrogena

Reputation: 11

can't get pydot to find graphviz on windows 10

I'm trying to run a Random Forest analysis on Python 2.7 and I get this error while trying to create the graph of the decision trees. error

I've tried reinstalling pydot and graphviz in alternating orders and I've also tried adding dot.exe to my system variables path with the value as C:\Program Files(x86)\Graphviz2.38\bin\

I'm fairly new to coding so I'd appreciate if you can explain the steps in detail.

Thanks!

Upvotes: 0

Views: 638

Answers (1)

Erwin Janssen
Erwin Janssen

Reputation: 31

When changing the PATH variable (or any other system variable for that matter), the applications using this variables must be restarted in order to see the new values. Alternatively, log out completely and log back in.

The application (in this case Python) should now be able to call the programs in C:\Program Files(x86)\Graphviz2.38\bin\. Hope this solves it!

Upvotes: 1

Related Questions