Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4483667
  • 博文数量: 192
  • 博客积分: 10014
  • 博客等级: 上将
  • 技术积分: 8232
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-21 00:22
文章分类

全部博文(192)

文章存档

2011年(4)

2009年(14)

2008年(174)

我的朋友

分类: Python/Ruby

2009-03-16 11:56:30

Graphviz - Graph Visualization Software

Graph visualization is a way of representing structural information as diagrams of abstract graphs and networks. Automatic graph drawing has many important applications in software engineering, database and web design, networking, and in visual interfaces for many other domains.

Graphviz is open source graph visualization software. It has several main graph layout programs. See the for some sample layouts. It also has web and interactive graphical interfaces, and auxiliary tools, libraries, and language bindings.

 

pygraphviz

Windows下pygraphviz的安装

1. 安装graphviz

2. 下载pygraphviz源代码

3. 修改pygraphviz的setup.py,

   library_path="C:\\Program Files\\Graphviz2.20\\lib"
   include_path="C:\\Program Files\\Graphviz2.20\\include\\graphviz"

将148行中的extension定义中的runtime_library_dirs改成None,

4. python setup.py install

Trouble Shooting

安装的时候不知道什么原因,import pygraphviz的时候,出现

ImportError: DLL load failed with error code 193

后来在控制台中运行python(而不是在IDLE中),import的时候出现了更多的提示,提示是一个so文件不是合法的windows程序(?),不知为什么,后来将编译出来的pyd文件覆盖(_graphviz),貌似解决问题了

 

 

阅读(4199) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~