要使graph-tool包含draw_hierarchy,需要哪些安装依赖项/选项? [英] What installation dependencies/options are needed for graph-tool to include draw_hierarchy?
问题描述
我已经在ubuntu 14.04,python 3.5.4上安装了graph-tool 2.26.
I've installed graph-tool 2.26 on ubuntu 14.04, python 3.5.4.
我可以使用图形工具,但似乎不完整.
I can use graph-tool, but it seems incomplete.
例如,我已经看到此错误:
For example I've seen this error:
AttributeError: module 'graph_tool.draw' has no attribute 'draw_hierarchy'
Before installing, I made sure that all the dependencies (found here https://git.skewed.de/count0/graph-tool/wikis/installation-instructions#manual-compilation) were installed, but I may have run into a situation where something was installed but not found/properly linked during install.
鉴于找不到draw_hierarchy
,很明显哪些依赖项可能丢失或版本不正确?
Given that draw_hierarchy
can't be found, is it obvious which dependencies might be missing or of an inappropriate version?
这是我安装graph-tool时的配置摘要.
Here's the configuration summary from when I installed graph-tool.
推荐答案
简短答案:GTK + 3
Short answer: GTK+ 3
当我遇到问题中提到的错误时,我拥有GTK + 3,但显然没有Python GTK + 3.
I had GTK+ 3, but apparently not Python GTK+ 3, when I got the error mentioned in the question.
从头开始并做
$ conda install -y -c conda-forge pygobject
$ conda install -y -c ostrokach gtk
在安装graph-tool之前,我能够获得缺少的graph-tool功能,例如问题中提到的draw_hierarchy
.
before installing graph-tool, I was able to gain missing graph-tool functions such as draw_hierarchy
mentioned in the question.
这篇关于要使graph-tool包含draw_hierarchy,需要哪些安装依赖项/选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!