參考:https://blog.csdn.net/fadai1993/article/details/82491657
其中在 安裝PyGraphviz時,遇到問題,由於我用的版本是python3.6,https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygraphviz
沒有對應版本,而用pip安裝又出現類似
command ‘D:\software\VS2017\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\cl.exe’ failed with exit status 2
這個的錯誤,當時報出的錯誤我沒有保存。
之後按照 https://stackoverflow.com/questions/45093811/installing-pygraphviz-on-windows-10-64-bit-python-3-6 用conda install graphviz pygraphviz -c alubbock安裝解決了