- 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網站靠譜。