-
windows系统下,在 keras里面绘图时,如果没有导入过pydot和 graphviz,在运行时会报告" Failed to import pydot. You must install pydot"类似的错误,并且提示你 pip install pydot,可是 pip install之后,又会提示你找不到 graphviz。
-
然后 pip install graphv后发现没用,网上搜索的解决方案大都是直接官网下载 graphy后并且加入系统path变量,但是最后如果倒霉的话有可能发现还是报同样的错。还是会报告 pydot找不到 graphviz( pydot failed to call Graphviz)
其实是pydot的原因,由于pydot已经停止开发了,pyhn3.5和 python36已经用不起来。 -
解决方案:
第一步:先卸载掉已经安装的pydot:
pip uninstall pydot
第二步:安装pydotplus
pip install pydotplus
然后找到 keras里面的 utils\vis_utils.py,把里面的pydot的都替换成 pydotplus, 例如:try:# import pydotimport pydotplus as pydot except ImportError:pydot = None
详细解决方案
Keras Error:OSError: `pydot` failed to call GraphViz.
热度:20 发布时间:2023-12-14 00:21:21.0
相关解决方案
- 请问registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister
- java报错Syntax error on token "return" invalid Type解决方案
- The server encountered an internal error () that prevented it from fulfilling th解决方案
- struts2的Action怎么返回指定路径的jsp或html,而不是返回SUCCESS、ERROR
- 'Update Progress' has encountered a problem An internal error has occurred解决方案
- JSP向SQL数据库中写下数据时提示:Network error IOException: Connection refused: connect
- DBCP borrowObject failed: java.sql.SQLException: Io 错误: The Network Adapter
- Error creating bean with name 'sessionFactory' defined in ServletContext resourc解决方法
- servlet+jquery1.4.2(ajax error?)解决方案
- Parse error in application web.xml,该如何解决
- java itext导出报Connection reset by peer: socket write error,该怎么处理
- Error reading resource: com/user/User.hbm.xml,该怎么解决
- fatal error; call to a member function query() on a non-object异常求回答啊 php+sqlite
- Error creating bean with name 'sessionFactory' defined in class path resource解决方法
- 大家帮帮忙呀The server encountered an internal error () that prevented it解决方法
- Server Apache Tomcat v6.0.35 at localhost failed to start
- 【100分】怎么监控多台服务器的log,alert,error
- SOS-(奇怪现象)服务器暂不可用500 internal server error,该怎么解决
- tomcat没法运行Could not publish to the server. Error while expanding
- Context [] startup failed due to previous errors解决方案
- JSF中javax.faces.el.PropertyNotFoundException: Error getting property的有关问题
- Syntax error on token "{" { expected after this token,该怎么解决
- WEBstruts The server encountered an internal error () that prevented it fr解决思路
- 'Update Progress' has encountered a problem An internal error has occurred解决方案
- object error!
- ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error,该如何解决
- Syntax error, insert "}" to complete Block,该如何处理
- error 哪位高手能帮忙解释哈什么有关问题
- log4j:ERROR setFile(null,false) call failed.解决方法
- CAS(SSO) tomcat ssl 配置出错 PKIX path building failed,该怎么处理