我试图在Win7上安装pygraphviz,python 3.5
使用以下命令:
C:\Users\...>C:\Python35\python.exe -m pip install pygraphviz
还尝试添加安装选项,但它没有帮助:
--install-option="--library-path=C:\Program Files (x86)\Graphviz\graphviz-2.38\release\lib\debug\lib" --install-option="--include-path=C:\Program Files (x86)\Graphviz\graphviz-2.38\release\include"
这是回报:
no previously-included directories found matching 'doc\build'
writing manifest file 'pygraphviz.egg-info\SOURCES.txt'
copying pygraphviz\graphviz.i -> build\lib.win-amd64-3.5\pygraphviz
copying pygraphviz\graphviz_wrap.c -> build\lib.win-amd64-3.5\pygraphviz
running build_ext
building 'pygraphviz._graphviz' extension
error: [WinError 2] The system cannot find the file specified
----------------------------------------
Command "C:\Python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\
\Users\\ebarhab\\AppData\\Local\\Temp\\pip-build-iot7onp2\\pygraphviz\\setup.py'
;f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n')
;f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\ebar
hab\AppData\Local\Temp\pip-hrnu16e0-record\install-record.txt --single-version-e
xternally-managed --compile "--library-path=C:\Program Files (x86)\Graphviz\grap
hviz-2.38\release\lib\debug\lib" "--include-path=C:\Program Files (x86)\Graphviz
\graphviz-2.38\release\include"" failed with error code 1 in C:\Users\ebarhab\Ap
pData\Local\Temp\pip-build-iot7onp2\pygraphviz\
你能帮我解决这个问题吗?
谢谢, 鲍尔泰克