【问题标题】:Use graphviz with python3将graphviz与python3一起使用
【发布时间】:2016-08-04 21:25:15
【问题描述】:

我尝试使用 graphviz 模块绘制决策树,它在 python2 中运行良好。有没有办法将此模块与 python3 一起使用? python3中是否还有其他支持绘制决策树的模块?

【问题讨论】:

标签: python-3.x graphviz decision-tree


【解决方案1】:

您是否为 python3 安装了 graphviz?它对我来说很好用:

andi@sunnyside:~$ python3
Python 3.5.3 (default, Jan 19 2017, 14:11:04) 
[GCC 6.3.0 20170118] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import graphviz
>>> 

虽然我使用的是 debian,但 graphviz 本身没有 debian 包,你必须使用 pip3 安装它。

【讨论】:

    猜你喜欢
    • 2016-08-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-19
    • 2023-03-19
    • 2016-11-01
    • 2016-05-18
    • 1970-01-01
    相关资源
    最近更新 更多