Installing pygraphviz on Windows 7 x64 for Python 3.5 x32 with fatal error LNK1120: 1 unsolved external

I read as much as I could, but I was stuck and made no progress. I tried to apply the patch, as recommended, in the threads around, but this failed. I am installing from a source downloaded from Github

Here is my command line

c:\Users\MyName\Downloads\pygraphviz\pygraphviz-master>C:\Users\MyName\AppData\L
ocal\Programs\Python\Python35-32\python.exe setup.py install --include-path "C:
Program Files (x86)\Graphviz2.38\include" --library-path "C:\Program Files (x86)
\Graphviz2.38\lib\release\lib"

I get this error

......

graphviz_wrap.obj : error LNK2001: unresolved external symbol _PyIOBase_Type
build\lib.win32-3.5\pygraphviz\_graphviz.cp35-win32.pyd : fatal error LNK1120: 1
 unresolved externals
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\
link.exe' failed with exit status 1120

Can someone please help me with this? I would really like to use another python library for my application

+4
source share

Source: https://habr.com/ru/post/1668958/


All Articles