当前位置:   article > 正文

failed to execute ['dot', '-Tsvg'], make sure the Graphviz executables are on your systems' PATH_python打包获得的.exe文件点击运行后报错failed to execute script01

python打包获得的.exe文件点击运行后报错failed to execute script01

windows

python安装了graphviz包,使用时报错:failed to execute ['dot', '-Tsvg'], make sure the Graphviz executables are on your systems' PATH

参考:https://stackoverflow.com/questions/35064304/runtimeerror-make-sure-the-graphviz-executables-are-on-your-systems-path-aft

在 https://graphviz.gitlab.io/_pages/Download/Download_windows.html 下载graphviz-2.38.zip

解压到D:\Program Files (x86)\graphviz2.38\release\bin

  1. import os
  2. os.environ["PATH"] += os.pathsep + 'D:/Program Files (x86)/Graphviz2.38/release/bin/'

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小惠珠哦/article/detail/841752
推荐阅读
相关标签
  

闽ICP备14008679号