Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work. Graphviz下载问题

win10下,报错是Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.说的是没有办法导入pydot包。

解决方式是:

①下载pydot和graphviz

pip install pydot

conda install graphviz,注意这里如果采用pip,大几率会失败,亲测。

②上官方网站下载graphviz,选择graphviz-2.40.1.tar.gz下载,解压至文件夹

③进入环境变量path,将解压文件夹后windows下的bin路径加入进去

如:c:\graphviz-2.40.1\windows\bin

你可能感兴趣的:(Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work. Graphviz下载问题)