plot_model报错
报错信息: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.
【参考:You must install pydot and graphviz for plotmodel to work报错如何处理_Cy_coding的博客-优快云博客】
pip install pydot
pip install graphviz
安装graphviz软件
重启IDE
下面这步一定要有
在python文件开头加入 :
import os
os.environ["PATH"] += os.pathsep + 'C:/Program Files/Graphviz/bin'