Python基本树可视化

时间:2018-10-27 16:34:09

标签: python graph tree visualization graph-visualization

我正在尝试用Python绘制基本树。

我尝试使用:igraph,plotly,pygraphviz,什么都行不通。

试图使用igraph。 通过此链接:Error with igraph library - deprecated library 我知道我的版本不正确(当时是0.1.11)

所以现在我正在尝试`pip install python-igraph但收到:

Cannot find the C core of igraph on this system using pkg-config.
WARNING: we were not able to detect where igraph is installed on
your machine (if it is installed at all). We will use the fallback
library and include pathss hardcoded in setup.py and hope that the
C core of igraph is installed there.

还通过以下链接尝试了Plotly: https://plot.ly/python/tree-plots/

我已经看到Stackoverflow中的人们也推荐它。 但是问题是es = EdgeSeq(G) # sequence of edges EdgeSeq没有定义,我也不知道它来自哪里,所以它不会运行。

还尝试了以下信息的pygraphviz: Drawing & Rendering Multiway Tree in Python

但是-无法安装pygraphviz:

building 'pygraphviz._graphviz' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

我已经下载并安装了所有必需的文件: vs_community__1763767426.1540655788,vs_buildtools__1763767426.1540655788, 但是错误仍然会出现。

也尝试使用'ete2',http://etetoolkit.org/docs/latest/tutorial/tutorial_drawing.html

但无法安装:

 Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\PC-1\AppData\Local\Temp\pip-install-d0hxeuwj\ete2\setup.py", line 90
        print "Installing ETE (A python Environment for Tree Exploration)."
                                                                          ^

我已经深入研究了每种方法,并试图解决错误,但没有成功。 请帮助我修复其中一种方法,或者找到另一种在python中绘制树的方法。

谢谢

0 个答案:

没有答案