解决 InvocationException: Program

2020-09-17  本文已影响0人  寂风如雪

尝试可视化 sklearn 实现的决策树
根据这篇文章 https://blog.csdn.net/llh_1178/article/details/78516774
graph.create_png() 出现报错

InvocationException: Program terminated with status: 1. stderr follows: Format: "png" not recognized. Use one of:

注意这个 Use one of: 后面什么都没有
网上搜索无果,最终摸索出解决方法是,在管理员权限下的 powershell 中执行 dot -c

上一篇 下一篇

猜你喜欢

热点阅读