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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM