Installing PygraphViz on Windows, Python 2.6

前端 未结 8 1238
轮回少年
轮回少年 2020-12-09 10:03

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

8条回答
  •  盖世英雄少女心
    2020-12-09 10:23

    Hat the same problem and I finally got it to work! The problem was actually in Python's msvc9compiler.py (yes you do need VS8's vc9 to compile, too). The error comes on line 698 in the function runtime_library_dir_option(). Instead of having it throw an error, have it return the same string as library_dir_option():

    def runtime_library_dir_option(self, dir):
        return "/LIBPATH:" + dir
    

    Then compile and it should work.

提交回复
热议问题