我在这里搜索了类似的主题,但大多数是与Mac相关的。我使用的是Windows 10 64位操作系统,并且使用Anaconda-3 64位版本。我希望听到你对此的建议。InvocationException: GraphViz's executables not found
#Displaying the decision tree
from sklearn import tree
#from StringIO import StringIO
from io import StringIO
#from StringIO import StringIO
from IPython.display import Image
out = StringIO()
tree.export_graphviz(classifier, out_file=out)
import pydotplus
graph=pydotplus.graph_from_dot_data(out.getvalue())
Image(graph.create_png())
编辑:我已经重新安装了graphviz和pydotplus模块,但仍然无法工作。