Mac OS:GraphViz‘s executables not found (python 3 and pydotplus) Error

决策树可视化 安装graphviz 和 pydotplus 插件时,报错Error

开始:

用mac中的homebrew包管理工具进行下载。
用brew安装graphviz,这过程中会自动下载graphviz的依赖保,大概7-8个,之后再用pip下载pydotplus。

brew install graphviz
pip3 install -U pydotplus

报错Error:

Installing dependencies for graphviz: librsvg
==> Installing graphviz dependency: librsvg
==> Pouring librsvg-2.50.7.catalina.bottle.tar.gz
Error: No such file or directory @ rb_sysopen - /Users/blackerteller/Library/Caches/Homebrew/downloads/00eabd059ea79633c504fcc7349c7f672787487a57c7428bdaba9df2041cc800–librsvg-2.50.7.catalina.bottle.tar.gz

解决方法:

单独brew 安装报错的依赖

brew install librsvg

再重新

brew install graphviz
pip3 install -U pydotplus
如果依旧有报错Error,那就再针对报错的依赖单独brew:

==> Installing dependencies for graphviz: pango and librsvg
==> Installing graphviz dependency: pango
==> Pouring pango-1.48.10.catalina.bottle.tar.gz
Error: No such file or directory @ rb_sysopen - /Users/blackerteller/Library/Caches/Homebrew/downloads/ff3db8f66b9a37e40b83af455290c84d085b956fb0413eedd88bba1ea5f274b9–pango-1.48.10.catalina.bottle.tar.gz

brew install pango
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值