for Windows 64-bit:
similar to what Andrew Filev wrote, except you NEED to use pythonxy, and YOU NEED to install Graphviz in a folder that does not contain spaces (including the root folder of the program: "Graphviz 2.28" => "Graphviz2 0.28"
So:
1) remove python 2.7
2) install pythonxb (http://code.google.com/p/pythonxy/wiki/Downloads)
3) install Graphviz 2.28 (only the one I tested), making sure that there are no spaces in the installation path. A good example would be: "C: \ Graphviz2.28"
4) download pygraphviz as zip (sources) and unzip.
5) change setup.py at the top to have
library_path=r"c:\Graphviz2.28\bin" include_path=r"c:\Graphviz2.28\include\graphviz"
6) run: python setup.py build -c mingw32
7) after seeing this result (much better than the previous one):
>python setup.py build -c mingw32 library_path=c:\Graphviz2.28\bin include_path=c:\Graphviz2.28\include\graphviz running build running build_py running build_ext
copy the result from the newly created lib.win32-2.7 (one subfolder called pygraphviz ) to the Python site-packages folder, which you may have to do yourself +, bind the new pygraphviz root folder to the environment variable PYTHONPATH
For example, the final library may be located here:
C:\Python27\libs\site_packages\pygraphviz
source share