我一直在python上运行一个脚本来生成一个决策树from sklearn import tree
model = tree.DecisionTreeClassifier()
model = model.fit(X,Y)
然后我想把结果可视化到一个png文件中,所以我运行了以下内容
^{pr2}$
我使用的是Anaconda,因此在Anaconda提示符中运行以下命令来安装Pydotplus和Graphviz:conda install -c conda-forge pydotplus
conda install graphviz
但是,在这之后,我得到了以下错误,我不知道它来自哪里Traceback (most recent call last):
File "", line 1, in
graph.create_png()
File "C:\Users\ferlandf\AppData\Local\Continuum\anaconda3\lib\site-packages\pydotplus\graphviz.py", line 1797, in
lambda f=frmt, prog=self.prog: self.create(format=f, prog=prog)
File "C:\Users\ferlandf\AppData\Local\Continuum\anaconda3\lib\site-packages\pydotplus\graphviz.py", line 2032, in create
status, stderr_output))
InvocationException: Program terminated with status: 3221225477. stderr follows: []
有人知道怎么解决这个问题吗?在
提前非常感谢你的帮助