Skip to content

Installation:fatal error: 'graphviz/cgraph.h' file not found #11

Closed
@hebijiandai

Description

@hebijiandai

I use mac os
I run the code:

python setup.py install 

But it didn't success
So I write the dirs:

include_dirs = "/Users/allenlee/Downloads/pygraphviz-master/pygraphviz"
library_dirs = "/Users/allenlee/Downloads/pygraphviz-master/pygraphviz"

But it cause the error

AllendeMacBook-Pro:pygraphviz-master allenlee$ python setup.py install
library_dirs=/Users/allenlee/Downloads/pygraphviz-master/pygraphviz
include_dirs=/Users/allenlee/Downloads/pygraphviz-master/pygraphviz
running install
running build
running build_py
running build_ext
building 'pygraphviz._graphviz' extension
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/allenlee/Downloads/pygraphviz-master/pygraphviz -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pygraphviz/graphviz_wrap.c -o build/temp.macosx-10.6-intel-2.7/pygraphviz/graphviz_wrap.o
pygraphviz/graphviz_wrap.c:2969:10: fatal error: 'graphviz/cgraph.h' file not found
#include "graphviz/cgraph.h"
         ^

Could you help to solve it?Thanks a lot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions