GraphViz报错“ ensure that its executables are in the $PATH.”问题的解决

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sinat_35512245/article/details/85014248

在使用GraphViz时报如下错误:

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

在Linux或者Window环境下可使用如下方法解决:

sudo apt-get install graphviz

说明:如果这个命令不起作用,可以尝试如下代码:

sudo apt-get update

此代码的作用是更新apt-get包到最新版本。

猜你喜欢

转载自blog.csdn.net/sinat_35512245/article/details/85014248