Has anyone succeeded in installing pygraphviz on windows 10 64bit? I tried anaconda with python 3.5 64bit & 32bit with no success.
Here is the error I am getting with python 3.5 32bit on win10 64bit
python -m pip install pygraphviz --install-option="--include-path=C:Program Files (x86)Graphviz2.38include" --install-option="--library-path=C:Program Files (x86)Graphviz2.38lib"
Error:
C:Program Files (x86)Microsoft Visual Studio 14.0VCBINcl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:Program Files (x86)Graphviz2.38include" -IC:Usersra20Anaconda3include -IC:Usersra20Anaconda3include "-IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program Files (x86)Windows Kits10include10.0.10240.0ucrt" "-IC:Program Files (x86)Windows Kits8.1includeshared" "-IC:Program Files (x86)Windows Kits8.1includeum" "-IC:Program Files (x86)Windows Kits8.1includewinrt" /Tcpygraphviz/graphviz_wrap.c /Fobuildemp.win32-3.5Releasepygraphviz/graphviz_wrap.obj
graphviz_wrap.c
pygraphviz/graphviz_wrap.c(3321): warning C4047: 'return': 'int' differs in levels of indirection from 'Agsym_t *'
C:Program Files (x86)Microsoft Visual Studio 14.0VCBINlink.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO "/LIBPATH:C:Program Files (x86)Graphviz2.38lib" /LIBPATH:C:Usersra20Anaconda3libs /LIBPATH:C:Usersra20Anaconda3PCbuildwin32 "/LIBPATH:C:Program Files (x86)Microsoft Visual Studio 14.0VCLIB" "/LIBPATH:C:Program Files (x86)Windows Kits10lib10.0.10240.0ucrtx86" "/LIBPATH:C:Program Files (x86)Windows Kits8.1libwinv6.3umx86" cgraph.lib cdt.lib /EXPORT:PyInit__graphviz buildemp.win32-3.5Releasepygraphviz/graphviz_wrap.obj /OUT:buildlib.win32-3.5pygraphviz\_graphviz.cp35-win32.pyd /IMPLIB:buildemp.win32-3.5Releasepygraphviz\_graphviz.cp35-win32.lib
LINK : fatal error LNK1181: cannot open input file 'cgraph.lib'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.exe' failed with exit status 1181
I assume it has something to do with the fact graphviz is linked in 32bit?
Note - I tried all binary for pygraphviz i could found on internet(anaconda,internet), and none work on win10 64bit... if you have any working (i mean you realy tested it ) i would be also happy ...
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…