windows 64 位 python2.7 64 位 安裝 pygraphviz

安裝環境 windows 64 位,python 2.7.11  62 位,已經安裝pip。如果你沒有安裝,請先安裝pip.
  • step1: 安裝 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;
  • 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網站靠譜。大笑

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章