- step1: 安装 pydot
- pip install pydot
- pip install pydot
- step2:安装 graphviz 2-38 .直接从官网下载
的安装包即可即可。之后安装。请注意官网的提示:graphviz-2.38.msi
If you wish to use the command-line interface to Graphviz or
are using some other program that calls a Graphviz program,
you will need to set the PATH variable yourself.
在环境变量path后添加bin和include的路径,比如
C:\Program Files (x86)\Graphviz2.38\bin; C:\Program Files (x86)\Graphviz2.38\include\graphviz;
C:\Program Files (x86)\Graphviz2.38\bin; C:\Program Files (x86)\Graphviz2.38\include\graphviz;
- step3 :安装 pygraphviz-1.3.1-cp27-none-win_amd64.whl .在uci网站下载编译好的whl文件。注意选择版本,是amd64,cp27
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygraphviz
之后在该文件的下载路径下直接输入:
pip install pygraphviz-1.3.1-cp27-none-win_amd64.whl
大功告成,你可以试试在python中使用它了。
-------------------------------------------------
为了在keras中调用可视化接口,需要安装这个库,折腾好久。还是uci网站靠谱。