当我尝试安装 pydot 时,它说我已经安装了它。
但是每当我尝试导入它时,我都会收到一条错误消息:无法导入 pydot。您必须安装 pydot 和 graphvizpydotprint才能工作。
pydotprint
这是我的代码:
model.summary() import pydot from keras.utils import plot_model plot_model(model, to_file='model.png')
我在 jupyter 笔记本上使用 python 3.6.3。
从 > http://www.graphviz.org/Download_windows.php下载 graphviz 的 msi 版本
将 C:\Program Files (x86)\Graphviz2.38\bin 添加到我的 PATH 系统变量中
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
点击生成二维码
我来说两句