免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2586 | 回复: 0
打印 上一主题 下一主题

pygraphviz及其在windows下的安装 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-16 11:56 |只看该作者 |倒序浏览

Graphviz - Graph Visualization Software
http://graphviz.org/
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
gallery
for some sample layouts. It also has web and interactive graphical interfaces, and auxiliary tools, libraries, and language bindings.

pygraphviz
http://networkx.lanl.gov/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),貌似解决问题了




本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8780/showart_1864600.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP