美文网首页
Failed to import pydot. You must

Failed to import pydot. You must

作者: 侯明昊啦啦啦 | 来源:发表于2020-03-07 16:42 被阅读0次

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

      本文链接:https://www.haomeiwen.com/subject/fbgcdhtx.html