当前位置:网站首页>plot_model报错:没有安装pydot, graphviz
plot_model报错:没有安装pydot, graphviz
2022-06-27 22:07:00 【Sarah ฅʕ•̫͡•ʔฅ】
1,安装pydot, graphviz方法可以 参考 以下博文:
https://blog.csdn.net/shangxiaqiusuo1/article/details/85283432
2,安装好后,修改pydot中的一个申明:
https://blog.csdn.net/HJXINKKL/article/details/89483033
2,安装好以后,检查 graphviz是否安装好:
https://blog.csdn.net/u014749291/article/details/54891087
import pydot
print(pydot.find_graphviz()) #报错:pydot没有 find_graphviz(),查看了 pydot.py,确实没有
#后,在pydot_ng中找到
import pydot_ng
print(pydot_ng.find_graphviz())
#返回: None
#后,查看 系统变量path路径:C:\Program Files (x86)\Graphviz2.38\bin
#修改为:C:\Program Files (x86)\Graphviz2.38\bin\
print(pydot_ng.find_graphviz())
#返回一个字典{...}
#运行了tensorflow官网代码:https://www.tensorflow.org/api_docs/python/tf/keras/utils/plot_model
#在次使用plot_model,无报错
边栏推荐
- SCU|通过深度强化学习进行微型游泳机器人的步态切换和目标导航
- Mysql database tourism management system_ Jsp+mysql tourism management system based on SSM [easy to understand]
- 剑指 Offer 61. 扑克牌中的顺子
- 华泰证券在网上开户安全吗?
- Flutter series: Transformers in flutter
- Technical debt wall: a way to make technical debt visible and negotiable
- 互联网的发展为产业的变革和转型提供了新的解决方案
- 用两个栈实现队列[两次先进后出便是先进先出]
- Summary of wuenda's machine learning course (14)_ Dimensionality reduction
- The limits of Technology (11): interesting programming
猜你喜欢

吴恩达《机器学习》课程总结(14)_降维

Arduino UNO通过电容的直接检测实现简易触摸开关

Modern programming languages: zig

How to quote Chinese documents when writing a foreign language?

Hcip/hcie Routing & Switching / datacom Reference Dictionary Series (19) comprehensive summary of PKI knowledge points (public key infrastructure)

MySQL企业级参数调优实践分享

赛尔笔记|视频文本预训练简述
![[digital ic/fpga] detect the position of the last matching sequence](/img/67/a1b575aa9b63892ed585d39e615c58.png)
[digital ic/fpga] detect the position of the last matching sequence

The limits of Technology (11): interesting programming

【无标题】
随机推荐
mysql数据库旅游管理系统_JSP+MySQL基于ssm的旅游管理系统[通俗易懂]
单片机之IIC通信协议「建议收藏」
[idea] idea formatting code skills
Eliminate gaps around El image images
How to use raspberry pie (and all kinds of pies)
MATLB|基于复杂网络的配电系统微电网优化配置
線程池實現:信號量也可以理解成小等待隊列
炼金术(1): 识别项目开发中的ProtoType、Demo、MVP
HCIP/HCIE Routing&Switching / Datacom备考宝典系列(十九)PKI知识点全面总结(公钥基础架构)
炼金术(4): 程序员的心智模型
Chenyun pytorch learning notes_ Build RESNET with 50 lines of code
Redis主从复制、哨兵模式、集群的概述与搭建
Msp430f5529 MCU reads gy-906 infrared temperature sensor
Safe, fuel-efficient and environment-friendly camel AGM start stop battery is full of charm
After a period of silence, I came out again~
[digital ic/fpga] detect the position of the last matching sequence
logging日志的使用
Alchemy (1): identify prototype, demo and MVP in project development
[untitled]
Sécurité, économie de carburant et protection de l'environnement chameau