Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.
来源:互联网 发布:淘宝发布宝贝添加规格 编辑:程序博客网 时间:2024/06/08 05:54
windows平台下,pip安装pydot和graphviz:
pip install pygot
pip install graphviz
测试时:
import pydot
print pydot.find_graphviz()
结果返回None
绘图运行时还出现如下错误:
raise ImportError :Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.
归根到底就是,pydot找不到Graphviz的可执行文件,包括dot.exe, twopi.exe, neato.exe.
这个在pydot安装目录的_init_.py文件中有说明:
找到graphviz安装目录,发现根本没有这三个exe文件,原因就是windows平台下不能用pip安装graphviz。
于是 http://www.graphviz.org/Download_windows.php 处下载graphviz的msi或者zip文件,安装后,在path添加环境变量指向graphviz的bin目录(该目录下有那几个exe文件),然后重新打开python环境测试,出现:
表示安装成功!
参考文献:
http://blog.csdn.net/wangjian1204/article/details/50346457
http://blog.csdn.net/u011274209/article/details/52892255
阅读全文
0 0
- Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.
- ImportError: Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.
- Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.
- Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.
- Failed to import pydot. You must install pydot and graphviz...-keras使用pydot出错(ubuntu16.04)
- Failed to import pydot
- install pydot and graphviz for win10
- Failed to import pydot 和graphviz error: (2, 'RegOpenKeyEx',错误总结
- 使用theano时,“Runtime Error: Failed to import pydot”错误
- 解决绘制theano图形时出现的`Runtime Error: Failed to import pydot’错误
- Generating Graph Visualizations with pydot and Graphviz
- keras可视化pydot graphviz问题
- python-Xgboost可视化问题 You must install graphviz to plot tree
- pydot.InvocationException: GraphViz'sexecutables not found
- 170926 windows 下安装pydot与graphviz
- MXML Continued... And A Sample Application For You To Work With!
- python的数据可视化 graphviz pydot安装配置(win10)
- python的数据可视化 graphviz pydot安装配置(win10)
- protobuf 使用时出现的问题
- python实现关联规则分析Apriori算法
- CCF CSP 201509-2 日期计算(Java-100分)
- Sping学习
- Tableau中的组(group)与集(set)
- Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.
- 二叉排序树题目一
- 设计模式之状态模式
- SAS中的编程技巧
- Codeblocks自动代码格式化+快捷键
- 自定义Emmet代码块
- 我来CSDN的第一篇博客
- Linux系统中的EOT和EOF
- WEBAPI querySelector以及queryselectorAll方法详解