花了好长时间研究windows pygraphviz的安装方法,大多数博文都说不支持Python3.4以上的版本,接近放弃的时候在github上找到了python 3.5/ 3.6/ 3.7 的whl文件,终于成功安装!分享一下安装方法:
STEP 1. Install Graphviz 安装Graphviz
https://graphviz.gitlab.io/_pages/Download/Download_windows.html
It's better not to change the installation path for Graphviz.
* Remember to add the address of bin folder as a Path in Environment Variables. 记得加环境变量
STEP 2. Install pyGraphviz 用pip安装pyGraphviz
Download the whl file for your python version(python 3.5/ python 3.6/ python 3.7), both 32 bit and 64 bit version are provided.
https://github.com/CristiFati/Prebuilt-Binaries/tree/master/Windows/PyGraphviz
- pygraphviz-1.5-cp35-cp35m-win_amd64.whl
- pygraphviz-1.5-cp35-cp35m-win32.whl
- pygraphviz-1.5-cp36-cp36m-win_amd64.whl