Installing PygraphViz on Windows, Python 2.6

前端 未结 8 1222
轮回少年
轮回少年 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条回答
  •  天命终不由人
    2020-12-09 10:24

    I managed to compile pygraphviz under windows with the following setup:

    Windows 7, WinPython-32bit-2.7.6.3, Graphviz2.38, microsoft visual c++ 2008 express edition, pygraphvize 1.3 dev

    in setup.py changed lines 35 and 36 to:

    include_dirs = r"C:\Program Files\Graphviz2.38\include" library_dirs = r"C:\Program Files\Graphviz2.38\lib\release\lib"

    The compilation works and you get a working pygraphviz python module.

    Hopes this helps.

提交回复
热议问题