其他分享
首页 > 其他分享> > 解决‘Failed to import pydot. You must `pip install pydot` and install graphviz‘

解决‘Failed to import pydot. You must `pip install pydot` and install graphviz‘

作者:互联网

运行绘图代码:

tf.keras.utils.plot_model(resnet50)

报错:
('Failed to import pydot. You must pip install pydot and install graphviz (https://graphviz.gitlab.io/download/), ', ‘for pydotprint to work.’)

尝试:
pip install pydot
pip install graphviz
安装graphviz-install-2.44.1-win64并添加到用户环境中的path中。
依旧报错…

再次尝试:
pip install pydot_ng
pip install graphviz
安装graphviz-install-2.44.1-win64并添加到用户环境中的path中。

标签:pydot,graphviz,Failed,报错,install,pip
来源: https://blog.csdn.net/L_cherry_/article/details/122111303