2017-06-04 46 views
0

得到錯誤在下面的代碼調用pydotplus.graph_from_dot_dataInvocationException:找不到的GraphViz的可執行文件(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()) 

錯誤輸出:

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

嗨,歡迎來到堆棧溢出。請參考 [stackoverflow.com/help/how-to-ask](https://stackoverflow.com/help/how-to-ask)關於 的更多詳細信息,以瞭解如何提出問題並相應地更新您的問題。 –

+0

[Graphviz的可執行文件找不到(Python 3.4)](https://stackoverflow.com/questions/28312534/graphvizs-executables-are-not-found-python-3-4) – lepsch

回答

相關問題