Skip to content

Cannot install pygraphviz on Mac OS 10.11.6 #100

Closed
@manthis

Description

@manthis

I have installed graphviz on my Mac using:

brew install graphviz

Every time I'm trying to install pygraphviz with:

pip install pygraphviz

I get the following results:

          Your Graphviz installation could not be found.

          1) You don't have Graphviz installed:
             Install Graphviz (http://graphviz.org)

          2) Your Graphviz package might incomplete.
             Install the binary development subpackage (e.g. libgraphviz-dev or similar.)

          3) You are using Windows
             There are no PyGraphviz binary packages for Windows but you might be
             able to build it from this source.  See
             http://networkx.lanl.gov/pygraphviz/reference/faq.html

          If you think your installation is correct you will need to manually
          change the include_dirs and library_dirs variables in setup.py to
          point to the correct locations of your graphviz installation.

          The current setting of library_dirs and include_dirs is:
          library_dirs=None
          include_dirs=None

          error: Error locating graphviz.

I have tried to specify library_path and include_path with the following command:

pip install graphviz --install-option="--include-path=/usr/local/include/graphviz/" --install-option="--library-path=/usr/local/lib/graphviz"

But it tells me:

error: option --include-path not recognized

I have tried with "include-dirs" and "library_dirs" too but without success.
How can I install it successfully? Should I built it from source?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions