可视化InvocationException: GraphViz's executables not found

  统计/机器学习 数据可视化 Python    浏览次数:6737        分享
0

我参考了可视化sklearn决策树的结构里面的代码

graph = graphviz.Source(dot_data)

但是报错

InvocationException: GraphViz's executables not found

我用的是centos系统,而且python里装了sklearn和graphviz,不知道这个问题怎么解决

 

hnh100   2018-11-28 08:09



   1个回答 
5

这个问题和python没有关系,是你的操作系统里没有graphviz

mac上

brew install graphviz

centos上

yum install graphviz


SofaSofa数据科学社区DS面试题库 DS面经

jkm_pku   2018-11-30 11:06

谢谢,yum之后就可以了 - hnh100   2018-12-01 01:30


  相关讨论

plt.plot作图,隐藏坐标轴

matplotlib画双y轴时,怎么隐藏右y轴的坐标网格线?

seaborn报错:regplot() got an unexpected keyword argument 'alpha'

用matplotlib.pyplot作图时,调整标题中文字的大小

matplotlib怎么把图例放到图外面

plt.show()之后matplotlib图像依然不展示

matplotlib.pyplot画图的标题中插入变量

如何调节seaborn里字体大小?

matplotlib如何设置画图格式,使得可视化效果更好

使用python plotnine画图 没有显示

  随便看看

回归问题中R方可以小于0吗?

pip install opencv-python失败,难道非要编译安装?

激活函数RELU在0点的导数是多少?

请问在sklearn怎么在已有的模型的基础上训练新的数据?

逻辑回归的损失函数是怎么来的