OSError: `pydot` failed to call GraphViz.Please install GraphViz (https://www.graphviz.org/) and ensure that its executables are in the $PATH.错误解决办法

Windows10

  • 安装相应模块
pip install pydot-ng
pip install graphviz
pip install pydot
  • 安装graphviz-2.38.msi

https://www.softpedia.com/get/Others/Miscellaneous/Graphviz.shtml#download

  • 配置环境

在系统环境变量【Path】中添加变量【F:\Program Files (x86)\Graphviz2.38\bin】即可

Linux

  • Ubuntu
sudo apt install python-pydot python-pydot-ng graphviz
  • CentOS
sudo yum install python-pydot python-pydot-ng graphviz

 

posted @ 2020-05-29 13:50  DuanYongchun  阅读(852)  评论(0编辑  收藏  举报