2024-AI人工智能学习-安装了pip install pydot但是还是报错

2024-AI人工智能学习-安装了pip install pydot但是还是报错

出现这样子的错误:

/usr/local/bin/python3.11 /Users/wangyang/PycharmProjects/studyPython/tf_model.py 
2023-12-24 22:59:02.238366: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
Traceback (most recent call last):
  File "/Users/wangyang/PycharmProjects/studyPython/tf_model.py", line 13, in <module>
    tf.keras.utils.plot_model(model, to_file='model.png', show_shapes=True)
  File "/usr/local/lib/python3.11/site-packages/keras/src/utils/vis_utils.py", line 464, in plot_model
    raise ImportError(message)
ImportError: You must install pydot (`pip install pydot`) and install graphviz (see instructions at https://graphviz.gitlab.io/download/) for plot_model to work.

在这里插入图片描述
但是我明明安装了,
在这里插入图片描述
但是还是报错了。所以大家不要慌,不要心急,
稳住!!!
!!!
请大家看看这里:

安装 Graphviz:

在 macOS 上,你可以使用 Homebrew 安装:

brew install graphviz

在这里插入图片描述
在这里插入图片描述

需要安装这个才能解决,这个报错的问题!!!!!

最近更新

  1. TCP协议是安全的吗?

    2023-12-25 10:42:04       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-25 10:42:04       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-25 10:42:04       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-25 10:42:04       18 阅读

热门阅读

  1. c语言查找算法

    2023-12-25 10:42:04       42 阅读
  2. 第二章 mysql配置

    2023-12-25 10:42:04       25 阅读
  3. 某大型零售企业薪酬与绩效考核体系项目纪实

    2023-12-25 10:42:04       40 阅读
  4. LeetCode //C - 643. Maximum Average Subarray I

    2023-12-25 10:42:04       41 阅读
  5. 面试经典150题(47-49)

    2023-12-25 10:42:04       28 阅读
  6. 【大数据学习笔记】新手学习路线图

    2023-12-25 10:42:04       39 阅读