即使安装后也无法导入 pydot
can not import pydot even after installing it
当我尝试安装 pydot 时,它说我已经安装了它。
但是每当我尝试导入它时,我都会收到一条错误消息:
无法导入 pydot。您必须安装 pydot 和 graphviz 才能 pydotprint
工作。
这是我的代码:
model.summary()
import pydot
from keras.utils import plot_model
plot_model(model, to_file='model.png')
我在 jupyter notebook 上使用 python 3.6.3。
从 >http://www.graphviz.org/Download_windows.php
下载 graphviz 的 msi 版本
add C:\Program Files (x86)\Graphviz2.38\bin to my system variables in PATH
当我尝试安装 pydot 时,它说我已经安装了它。
但是每当我尝试导入它时,我都会收到一条错误消息:
无法导入 pydot。您必须安装 pydot 和 graphviz 才能 pydotprint
工作。
这是我的代码:
model.summary()
import pydot
from keras.utils import plot_model
plot_model(model, to_file='model.png')
我在 jupyter notebook 上使用 python 3.6.3。
从 >http://www.graphviz.org/Download_windows.php
下载 graphviz 的 msi 版本add C:\Program Files (x86)\Graphviz2.38\bin to my system variables in PATH