【报错解决办法】subprocess.CalledProcessError: Command ‘[‘dot‘, ‘-Tpng‘, ‘-O‘, ‘./data\\Digraph.gv‘]‘ return

试了网上的一些方法都没有成功,最后,我在cmd中检测了一下dot的版本,才发现问题。具体操作是:

打开cmd
运行:dot -v
出现问题:There is no layout engine support for “dot”…
运行:dot -c
没有提示(成功)
再次运行dot -v
结果如下图(成功)。详情也可参考:win10安装Graphviz
再次执行上述测试代码,没有报错,nice~

(base) PS C:\Users\HiFuture> dot -v
dot - graphviz version 2.44.1 (20200629.0846)
There is no layout engine support for "dot"
Perhaps "dot -c" needs to be run (with installer's privileges) to register the plugins?
(base) PS C:\Users\HiFuture> dot -c
(base) PS C:\Users\HiFuture> dot -v
dot - graphviz version 2.44.1 (20200629.0846)
libdir = "D:\software\Graphvz2.44.1\Graphviz 2.44.1\bin"
Activated plugin library: gvplugin_dot_layout.dll
Using layout: dot:dot_layout
Activated plugin library: gvplugin_core.dll
Using render: dot:core
Using device: dot:dot:core
The plugin configuration file:
        D:\software\Graphvz2.44.1\Graphviz 2.44.1\bin\config6
                was successfully loaded.
    render      :  cairo dot dot_json fig gdiplus json json0 map mp pic ps svg tk vml xdot xdot_json
    layout      :  circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi
    textlayout  :  textlayout
    device      :  bmp canon cmap cmapx cmapx_np dot dot_json emf emfplus eps fig gif gv imap imap_np ismap jpe jpeg jpg json json0 metafile mp pdf pic plain plain-ext png ps ps2 svg tif tiff tk vml xdot xdot1.2 xdot1.4 xdot_json
    loadimage   :  (lib) bmp eps gif jpe jpeg jpg png ps svg
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值