【问题标题】:What installation dependencies/options are needed for graph-tool to include draw_hierarchy?图形工具需要哪些安装依赖项/选项才能包含 draw_hierarchy?
【发布时间】:2018-02-14 18:51:45
【问题描述】:

我在 ubuntu 14.04、python 3.5.4 上安装了 graph-tool 2.26。

我可以使用图形工具,但它似乎不完整。

例如我见过这个错误:

AttributeError: module 'graph_tool.draw' has no attribute 'draw_hierarchy'

在安装之前,我确保已安装所有依赖项(在此处找到 https://git.skewed.de/count0/graph-tool/wikis/installation-instructions#manual-compilation),但我可能遇到了安装过程中安装了某些内容但未找到/未正确链接的情况。

鉴于无法找到draw_hierarchy,是否很明显可能缺少哪些依赖项或版本不合适?

这是我安装图形工具时的配置摘要。

【问题讨论】:

    标签: python python-3.x graph-tool


    【解决方案1】:

    简答:GTK+ 3

    当我收到问题中提到的错误时,我有 GTK+ 3,但显然不是 Python GTK+ 3。

    从头再来

    $ conda install -y -c conda-forge pygobject
    $ conda install -y -c ostrokach gtk
    

    在安装图形工具之前,我能够获得缺少的图形工具功能,例如问题中提到的draw_hierarchy

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-15
      • 2016-09-28
      • 2018-09-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多