Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6593027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:37:47+00:00 2026-05-25T17:37:47+00:00

Anybody out there has successfully installed PygraphViz on Windows? Since there is not an

  • 0

Anybody out there has successfully installed PygraphViz on Windows?

Since there is not an official release for Windows, I’m trying to build it myself, but it fails to compile. I’m not the first one to face this issue, but I could not find an answer.

This is the console output:

C:\Python26\Lib\site-packages\pygraphviz-0.99.1>c:\python26\python.exe setup.py
install
library_path=C:/Program Files/Graphviz2.26.3/lib/debug/dll
include_path=C:/Program Files/Graphviz2.26.3/include/graphviz
running install
running build
running build_py
running build_ext
building 'pygraphviz._graphviz' extension
C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W
3 /GS- /DNDEBUG "-IC:/Program Files/Graphviz2.26.3/include/graphviz" -Ic:\python
26\include -Ic:\python26\PC /Tcpygraphviz/graphviz_wrap.c /Fobuild\temp.win32-2.
6\Release\pygraphviz/graphviz_wrap.obj
graphviz_wrap.c
warning: I don't know what to do with 'runtime_library_dirs': ['C:/Program Files
/Graphviz2.26.3/lib/debug/dll']
error: don't know how to set runtime library search path for MSVC++

Any help would be appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:37:48+00:00Added an answer on May 25, 2026 at 5:37 pm

    Here’s what worked for me in Python 2.7. I assume it should work similarly in Python 2.6.
    Precondition: Install mingw32 (included in pythonxy distrib if you’re using it), Graphviz

    1) Download pygraphviz sources

    2) Edit setup.py to change paths to smth like

    library_path=r"c:\Program Files (x86)\Graphviz 2.28\bin"
    include_path=r"c:\Program Files (x86)\Graphviz 2.28\include\graphviz"
    

    Note that it’s \bin, not \lib. Linking with libs didn’t work for me.

    3) run python setup.py build -c mingw32

    Result of step 3:

    c:\Python27\Lib\site-packages\pygraphviz-1.1>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
    running build_ext
    building 'pygraphviz._graphviz' extension
    C:\MinGW32-xy\bin\gcc.exe -mno-cygwin -mdll -O -Wall "-Ic:\Program Files (x86)\G
    raphviz 2.28\include\graphviz" -Ic:\Python27\include -Ic:\Python27\PC -c pygraph
    viz/graphviz_wrap.c -o build\temp.win32-2.7\Release\pygraphviz\graphviz_wrap.o
    pygraphviz/graphviz_wrap.c: In function 'agattr_label':
    pygraphviz/graphviz_wrap.c:2855:5: warning: return makes integer from pointer wi
    thout a cast
    writing build\temp.win32-2.7\Release\pygraphviz\_graphviz.def
    C:\MinGW32-xy\bin\gcc.exe -mno-cygwin -shared -s build\temp.win32-2.7\Release\py
    graphviz\graphviz_wrap.o build\temp.win32-2.7\Release\pygraphviz\_graphviz.def "
    -Lc:\Program Files (x86)\Graphviz 2.28\bin" -Lc:\Python27\libs -Lc:\Python27\PCb
    uild "-Wl,-Rc:\Program Files (x86)\Graphviz 2.28\bin" -lcgraph -lcdt -lpython27
    -lmsvcr90 -o build\lib.win32-2.7\pygraphviz\_graphviz.pyd
    

    4) copy the result from the just built lib.win32-2.7 (single sub-folder called pygraphviz) into your Python’s site-packages folder

    Enjoy!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anybody out there used the SWIG library with C#? If you have, what
Has anybody out there got any real world experience with the H2 database ?
Wondering if anybody out there has any success in using the JDEdwards XMLInterop functionality.
I thought I'd throw this out there just to see if anybody has experienced
Does anybody out there know how to setup Eclipse with MinGW or Cygwin to
Im just wondering if theres a recommended syntax validator out there anybody can recommend?
I am not that expert in SSIS. Can anybody help me out on my
Is anybody out there using iBATIS 3 as their persistence framework inside an EJB
I am wondering if anybody out there could explain or provide online examples (yes,
I was wondering whether anybody out there is actively using Rhapsody TestConductor ? Or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.