Installing PygraphViz on Windows, Python 2.6

前端 未结 8 1219
轮回少年
轮回少年 2020-12-09 10:03

Anybody out there has successfully installed PygraphViz on Windows?

Since there is not an official release for Windows, I\'m trying to build it myself, but it fails

8条回答
  •  Happy的楠姐
    2020-12-09 10:16

    If you remove the 'runtime_library_dirs' parameter from the extension dictionary in on line 147 in setup.py, your error message goes away. However, it can't find cgraph.lib. If you change your settings to

    library_path=r'C:\Program Files\Graphviz2.26.3\lib\debug\lib'
    

    everything complies and installs. You can import the modules, but the moment you try and access anything, it bombs out. In looking at the source for GraphViz, it appears that the windows version is C#/.NET - perhaps that is the source of our problems?

提交回复
热议问题