python - 在 Windows 上,即使在 pip install 或 conda 之后,graphviz 也无法正常工作。它说 InvocationException: GraphViz's executables not found
问题描述
在 Windows 上,即使在pip install
或之后,graphviz 也无法正常工作conda
。它说
InvocationException:未找到 GraphViz 的可执行文件。
我正在尝试用决策树建模。
dot_data = StringIO()
export_graphviz(dt, out_file=dot_data,
filled=True, rounded=True,
feature_names=X.columns.values,
class_names = ['human','bot'],
special_characters=True)
graph = pydotplus.graph_from_dot_data(dot_data.getvalue())
Image(graph.create_png())`
解决方案
推荐阅读
- javascript - 如何使用 Angular 4 获取系统的 MAC 地址
- excel - 将数据复制到新工作表会引发“下标超出范围”
- c# - 球没有在桨/墙上正确弹跳
- java - 使用 Thymeleaf 为 Spring Boot 加载模板时出错
- python - 具有碰撞对的非碰撞对象,Pymunk Pygame
- system-verilog - 是否可以在分配语句之外在 SystemVerilog 中调用 new ?
- magento-1.9 - Magento 1 如何即时设置定期付款初始费用?
- webpack - 使用 webpack 在没有 js 导入的情况下观看和编译 sass
- java - 尝试启动片段时应用程序强制关闭
- java - 创建方法后如何使用 SQLiteDatabase?