Binary Lion Studios

I code for fun and for food.

Installing pygraphviz OSX

Download and install the latest version of graphviz.

Download and unpack the latest version of pygraphviz.

Update the library_path and include_path in setup.py.

setup.py
1
2
library_path='/usr/local/lib/graphviz/'
include_path='/usr/local/include/graphviz/'

Install as usual:

1
$ sudo python setup.py install

Test the install.

Important: Before you enter the python interpreter, make sure you leave the pygraphviz directory.

1
2
3
4
$ cd ~
$ python
>>> import pygraphviz
>>>

Sources:

http://bradmontgomery.blogspot.com/2010/07/pygraphviz-on-os-x-sl-with-virtualenv.html