Python 即使在安装pydot后也无法导入它

Python 即使在安装pydot后也无法导入它,python,python-3.x,anaconda,jupyter-notebook,pydot,Python,Python 3.x,Anaconda,Jupyter Notebook,Pydot,当我试图安装pydot时,它说我已经安装了它 但每当我尝试导入它时,都会出现一个错误,即: 无法导入pydot。必须安装pydot和graphviz才能使pydotprint正常工作 这是我的代码: model.summary() import pydot from keras.utils import plot_model plot_model(model, to_file='model.png') 我正在jupyter笔记本上使用python 3.6.3。从下载graphviz的msi版

当我试图安装pydot时,它说我已经安装了它

但每当我尝试导入它时,都会出现一个错误,即: 无法导入pydot。必须安装pydot和graphviz才能使
pydotprint
正常工作

这是我的代码:

model.summary()
import pydot
from keras.utils import plot_model
plot_model(model, to_file='model.png')

我正在jupyter笔记本上使用python 3.6.3。

从下载graphviz的msi版本>

将C:\Program Files(x86)\Graphviz2.38\bin添加到路径中的我的系统变量


你是如何运行代码的?python-c导入系统的输出是什么;打印(系统路径)?