我试图安装pygraphviz但收到以下错误

时间:2013-08-05 10:22:48

标签: networkx pygraphviz

我正在尝试安装pygraphviz,我尝试使用以下命令执行此操作,但不幸的是它无法正常工作。任何人都可以帮忙解决这个问题吗?

C:\Python27\Lib\site-packages\pygraphviz-1.2>python setup.py build -c mingw32
    library_path=c:\Program Files (x86)\Graphviz 2.28\bin
    include_path=c:\Program Files (x86)\Graphviz 2.28\include\graphviz
    running build
    running build_py
    creating build
    creating build\lib.win32-2.7
    creating build\lib.win32-2.7\pygraphviz
    copying pygraphviz\agraph.py -> build\lib.win32-2.7\pygraphviz
    copying pygraphviz\graphviz.py -> build\lib.win32-2.7\pygraphviz
    copying pygraphviz\release.py -> build\lib.win32-2.7\pygraphviz
    copying pygraphviz\version.py -> build\lib.win32-2.7\pygraphviz
    copying pygraphviz\__init__.py -> build\lib.win32-2.7\pygraphviz
    creating build\lib.win32-2.7\pygraphviz\tests
    copying pygraphviz\tests\test.py -> build\lib.win32-2.7\pygraphviz\tests
    copying pygraphviz\tests\__init__.py -> build\lib.win32-2.7\pygraphviz\tests
    copying pygraphviz\tests\attributes.txt -> build\lib.win32-2.7\pygraphviz\test
    copying pygraphviz\tests\graph.txt -> build\lib.win32-2.7\pygraphviz\tests
    copying pygraphviz\tests\layout_draw.txt -> build\lib.win32-2.7\pygraphviz\tes

    copying pygraphviz\tests\unicode.txt -> build\lib.win32-2.7\pygraphviz\tests
    running build_ext
    building 'pygraphviz._graphviz' extension
    creating build\temp.win32-2.7
    creating build\temp.win32-2.7\Release
    creating build\temp.win32-2.7\Release\pygraphviz
    gcc -mno-cygwin -mdll -O -Wall "-Ic:\Program Files (x86)\Graphviz 2.28\include
    raphviz" -Ic:\python27\include -Ic:\python27\PC -c pygraphviz/graphviz_wrap.c
     build\temp.win32-2.7\Release\pygraphviz\graphviz_wrap.o
    error: command 'gcc' failed: No such file or directory

1 个答案:

答案 0 :(得分:0)

缺少gcc C编译器?在Installing PygraphViz on Windows, Python 2.6

上有一些使用Windows编译PyGraphviz的提示