我试图通过两种不同的方式在笔记本电脑上安装pygraphviz:
1)和conda:
conda install -c alubbock pygraphviz.
一直下降到
C:\>SET DISTUTILS_USE_SDK=1
C:\>SET MSSdk=1
C:\>SET platform=
C:\>IF /I [AMD64] == [amd64] set "platform=true"
C:\>IF /I [] == [amd64] set "platform=true"
C:\>if defined platform (set "VSREGKEY=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\microsoft\VisualStudio\14.0" ) ELSE (set "VSREGKEY=HKEY_LOCAL_MACHINE\SOFTWARE\microsoft\VisualStudio\14.0" )
C:\>for /F "skip=2 tokens=2,*" %A in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\microsoft\VisualStudio\14.0" /v InstallDir') do SET "VSINSTALLDIR=%B"
ERROR: The system was unable to find the specified registry key or value.
C:\>if "" == "" (set "VSINSTALLDIR=" )
C:\>if "" == "" (
ECHO "WARNING: Did not find VS in registry or in VS140COMNTOOLS env var - your compiler may not work"
GOTO End
)
"WARNING: Did not find VS in registry or in VS140COMNTOOLS env var - your compiler may not work"
The system cannot find the batch label specified - End
2),点子为:pip install pygraphviz
它说要求已经满足,但是在运行我的python代码时出现错误:
ImportError: ('requires pygraphviz ','http://pygraphviz.github.io/')