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_modelraise 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
需要安装这个才能解决,这个报错的问题!!!!!