ImportError: ('You must install pydot (`pip install pydot`) and install graphviz (see instructions at https://graphviz.gitlab.io/download/) ', 'for plot_model/model_to_dot to work.')

重要错误: (“您必须安装 pydot (‘ pip install pydot’)并安装 Graphviz (见 https://graphviz.gitlab.io/download/中的说明)”,“ for plot _ model/model _ to _ dot to _ dot to work.”)

ImportError: (‘You must install pydot (`pip install pydot`) and install graphviz (see instructions a_graphviz

目录

一、根据提示下载pydot

二、根据提示到所给的官网下载graphviz

1、https://graphviz.gitlab.io/download/

 2、我的运行环境是win10 X64

 3、安装


一、根据提示下载pydot

pip install pydot

二、根据提示到所给的官网下载graphviz

1、https://graphviz.gitlab.io/download/

ImportError: (‘You must install pydot (`pip install pydot`) and install graphviz (see instructions a_python_02

 2、我的运行环境是win10 X64

ImportError: (‘You must install pydot (`pip install pydot`) and install graphviz (see instructions a_graphviz_03

ImportError: (‘You must install pydot (`pip install pydot`) and install graphviz (see instructions a_pip_04

 

 3、安装

(直接安装,如果有拦截选择信任,一直下一步,到了第三步如下图记得选择增加环境变量,不然后期需要手动增加到环境变量)

ImportError: (‘You must install pydot (`pip install pydot`) and install graphviz (see instructions a_pip_05

ImportError: (‘You must install pydot (`pip install pydot`) and install graphviz (see instructions a_graphviz_06

 

4 后面再重新运行就可以了