适用于Windows 2.5的Graphviz Python绑定? [英] Graphviz Python Binding for Python 2.5 on Windows?

查看:68
本文介绍了适用于Windows 2.5的Graphviz Python绑定?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我想在Windows上使用Python 2.5和Graphviz来生成

图。我使用了yapgvb,但它只需要Python 2.4(不能用Python 2.5工作

)。像pydot这样的其他软件包似乎没有维护

或需要在Windows上使用自定义构建(pygraphviz),这是我试图避免的
。有什么建议吗?


提前致谢,

Alex

Hello,

I would like to use Python 2.5 on Windows with Graphviz to generate
graphs. I used yapgvb but it only requires Python 2.4 (won''t work
with Python 2.5). Other packages like pydot seems to be unmaintained
or requires custom building to be used on Windows (pygraphviz), which
I tried to avoid. Any suggestions?

Thanks in advance,
Alex

推荐答案

嗨!


您也可以使用/通过COM调用GraphViz。

P2.3 - 2.4&运行正常。 2.5

@ -salutations


Michel Claveau
Hi!

You can also use/call GraphViz by COM.
It''s run OK with P2.3 - 2.4 & 2.5

@-salutations

Michel Claveau


谢谢米歇尔,我会尝试一下。


Alex

Thanks Michel, I will give it a try.

Alex


3月5日下午5:16,Alex Li ; < likw ... @ gmail.comwrote:
On Mar 5, 5:16 pm, "Alex Li" <likw...@gmail.comwrote:

你好,


我想在Windows上使用Python 2.5用Graphviz生成

图。我使用了yapgvb,但它只需要Python 2.4(不能用Python 2.5工作

)。像pydot这样的其他软件包似乎没有维护

或需要在Windows上使用自定义构建(pygraphviz),这是我试图避免的
。有什么建议吗?


提前致谢,

Alex
Hello,

I would like to use Python 2.5 on Windows with Graphviz to generate
graphs. I used yapgvb but it only requires Python 2.4 (won''t work
with Python 2.5). Other packages like pydot seems to be unmaintained
or requires custom building to be used on Windows (pygraphviz), which
I tried to avoid. Any suggestions?

Thanks in advance,
Alex



Alex,

您可以随时使用子流程方法将点文件直接传送到点或neato

可执行文件,然后读取输出。通过这种方式

您不必安装yapgvb或其他适配器,它将使用Python 2.5工作

。但是你需要把你的点文件组成一个巨大的

字符缓冲区...

-Nick V.

Alex,
You can always pipe your dot file directly to the dot or neato
executables using the subprocess method then read the output. This way
you don''t have to install yapgvb or other adapters and it will work
with Python 2.5. But you will need to compose your dot file as a giant
character buffer...
-Nick V.


这篇关于适用于Windows 2.5的Graphviz Python绑定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆