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