Installing pygraphviz on windows

前端 未结 5 1749
清歌不尽
清歌不尽 2020-12-06 03:52

After installing the latest graphviz (2.26.3) on my Windows 7 Ultimate 64bit, I receive the following error:

C:>easy_install pygraphviz Searching fo

5条回答
  •  一生所求
    2020-12-06 04:13

    I just spent half an hour trying to figure out why the answers above weren't working for me and it turns out they are out-of-date as library_path and include_path are no longer the names of the relevant variables. Here's what worked for me on Windows 7, 32-bit Python 2.7:

    setup.py

    library_dirs = r'C:\PROGRA~2\Graphviz2.38\bin'
    include_dirs = r'C:\PROGRA~2\Graphviz2.38\include'
    

    then run python setup.py build -c mingw32

提交回复
热议问题