2017-06-04 5 views
0

d'erreur Obtenir appeler pydotplus.graph_from_dot_data dans le code ci-dessous:InvocationException: les executables de GraphViz pas trouvé (Python)

from IPython.display import Image 

dot_data = tree.export_graphviz(clf, 
           out_file=None, 
           feature_names=iris.feature_names, 
           class_names=iris.target_names, 
           filled=True, 
           rounded=True, 
           special_characters=True) 
graph = pydotplus.graph_from_dot_data(dot_data) 
Image(graph.create_png()) 

La sortie d'erreur:

File "C:\Users\ss\Anaconda3\lib\site-packages\pydotplus\graphviz.py", line 1960, in create 'GraphViz\'s executables not found') 
InvocationException: GraphViz's executables not found 
+0

Bonjour, Bienvenue dans le débordement de la pile. Reportez-vous au lien [stackoverflow.com/help/how-to-ask](https://stackoverflow.com/help/how-to-ask) pour plus d'informations sur comment poser une question et mettre à jour votre question en conséquence. . –

+0

Copie possible de [les exécutables de Graphviz sont introuvables (Python 3.4)] (https://stackoverflow.com/questions/28312534/graphvizs-executables-are-not-found-python-3-4) – lepsch

Répondre