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_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

在這里插入圖片描述
在這里插入圖片描述

需要安裝這個才能解決,這個報錯的問題!!!!!

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/392284.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/392284.shtml
英文地址,請注明出處:http://en.pswp.cn/news/392284.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

grafana 創建儀表盤_創建儀表盤前要問的三個問題

grafana 創建儀表盤可視化 (VISUALIZATIONS) It’s easier than ever to dive into dashboarding, but are you doing it right?深入儀表板比以往任何時候都容易&#xff0c;但是您這樣做正確嗎&#xff1f; Tableau, Power BI, and many other business intelligence tools …

qq群 voiceover_如何在iOS上使用VoiceOver為所有人構建應用程序

qq群 voiceoverby Jayven N由Jayven N 如何在iOS上使用VoiceOver為所有人構建應用程序 (How to build apps for everyone using VoiceOver on iOS) 輔助功能入門 (Getting started with accessibility) There’s always those topics that people don’t talk about enough. S…

IntelliJ IDEA代碼常用的快捷鍵(自查)

IntelliJ IDEA代碼常用的快捷鍵有&#xff1a; Alt回車 導入包&#xff0c;自動修正 CtrlN 查找類 CtrlShiftN 查找文件 CtrlAltL 格式化代碼 CtrlAltO 優化導入的類和包 AltInsert 生成代碼(如get,set方法,構造函數等) CtrlE或者AltShiftC 最近更改的代碼 CtrlR…

leetcode 1489. 找到最小生成樹里的關鍵邊和偽關鍵邊(并查集)

給你一個 n 個點的帶權無向連通圖&#xff0c;節點編號為 0 到 n-1 &#xff0c;同時還有一個數組 edges &#xff0c;其中 edges[i] [fromi, toi, weighti] 表示在 fromi 和 toi 節點之間有一條帶權無向邊。最小生成樹 (MST) 是給定圖中邊的一個子集&#xff0c;它連接了所有…

帶彩色字體的man pages(debian centos)

1234567891011121314151617181920212223242526272829303132333435363738我的博客已遷移到xdoujiang.com請去那邊和我交流簡介most is a paging program that displays,one windowful at a time,the contents of a file on a terminal. It pauses after each windowful and prin…

提取json對象中的數據,轉化為數組

var xx1 ["樂譜中的調號為&#xff08; &#xff09;調", "寫出a自然小調音階。", "以G為冠音&#xff0c;構寫增四、減五音程。", "調式分析。", "將下列樂譜移為C大調。", "正確組合以下樂譜。", "以下…

java 同步塊的鎖是什么,java – 同步塊 – 鎖定多個對象

我添加了另一個答案&#xff0c;因為我還沒有添加評論給其他人的帖子。>事實上&#xff0c;同步是用于代碼&#xff0c;而不是對象或數據。在同步塊中用作參數的對象引用表示鎖定。所以如果你有如下代碼&#xff1a;class Player {// Same instance shared for all players.…

大數據對社交媒體的影響_數據如何影響媒體,廣告和娛樂職業

大數據對社交媒體的影響In advance of our upcoming event — Data Science Salon: Applying AI and ML to Media, Advertising, and Entertainment, we asked our speakers, who are some of nation’s leading data scientists in the media, advertising, and entertainment…

Go-項目結構和代碼組織

簡介 做大量的輸入&#xff0c;通過對比、借鑒&#xff0c;加上自己的經驗&#xff0c;產出一個盡可能優的方案。 開源界優秀項目的結構示例 因為最新的 Go 版本已經使用 module 作為版本依賴&#xff0c;所以&#xff0c;所有項目的 vendor 我都忽略&#xff0c;建議直接使用 …

iref streams_如何利用Neo4j Streams并建立即時數據倉庫

iref streamsby Andrea Santurbano通過安德里亞桑圖爾巴諾(Andrea Santurbano) 如何利用Neo4j Streams并建立即時數據倉庫 (How to leverage Neo4j Streams and build a just-in-time data warehouse) In this article, we’ll show how to create a Just-In-Time Data Wareho…

Nodejs正則表達式函數之match、test、exec、search、split、replace使用詳解

1. Match函數使用指定的正則表達式函數對字符串驚醒查找&#xff0c;并以數組形式返回符合要求的字符串原型&#xff1a;stringObj.match(regExp)參數&#xff1a;stringObj 必選項&#xff0c;需要去進行匹配的字符串RegExp 必選項&#xff0c;指定的正則表達式返回值&#xf…

Zabbix 3.0 從入門到精通(zabbix使用詳解)

第1章 zabbix監控 1.1 為什么要監控 在需要的時刻&#xff0c;提前提醒我們服務器出問題了 當出問題之后&#xff0c;可以找到問題的根源 網站/服務器 的可用性 1.1.1 網站可用性 在軟件系統的高可靠性&#xff08;也稱為可用性&#xff0c;英文描述為HA&#xff0c;High Avail…

python 裝飾器裝飾類_5分鐘的Python裝飾器指南

python 裝飾器裝飾類重點 (Top highlight)There’s no doubt that Python decorators are one of the more advanced and tougher-to-understand programming concepts. This doesn’t mean you should avoid learning them — as you encounter them in production code soone…

php中顏色的索引值,計算PHP中兩種顏色之間的平均顏色,使用索引號作為參考值...

我們假設為了討論的目的,每個顏色都有一個“值”.那么,你想要的就足夠簡單&#xff1a;$index 0.2;$val1 get_value_of_color($color1);$val2 get_value_of_color($color2);$newval $val1 * $index $val2 * (1 - $index);$newcolor get_color_from_value($newval);所以,很…

leetcode 989. 數組形式的整數加法

對于非負整數 X 而言&#xff0c;X 的數組形式是每位數字按從左到右的順序形成的數組。例如&#xff0c;如果 X 1231&#xff0c;那么其數組形式為 [1,2,3,1]。 給定非負整數 X 的數組形式 A&#xff0c;返回整數 XK 的數組形式。 示例 1&#xff1a; 輸入&#xff1a;A […

您需要了解的WordPress漏洞以及如何修復它們

by Joel S. Syder喬爾賽德(Joel S.Syder) 您需要了解的WordPress漏洞以及如何修復它們 (WordPress vulnerabilities you need to know about — and how to fix them) WordPress is an incredibly useful and versatile platform for all kinds of blogging. It’s become ver…

Maven基礎。

---恢復內容開始--- Maven&#xff1a; 1、概念。 * maven 是一個項目管理工具。 * maven的作用。 1、jar包。依賴管理。將jar包放在jar包倉庫&#xff08;pom.xml)&#xff0c;不需要每個項目都添加jar包。 2、測試。 3、項目發布。 2、使用。 * 下載解壓即可。 * 環境變量配置…

Dinosaur Run - Dinosaur world Games

轉載于:https://www.cnblogs.com/hotmanapp/p/7092669.html

機器學習實際應用_機器學習的實際好處是什么?

機器學習實際應用Some of my previous introductory posts to machine learning and data science were a bit technical. However, my purpose of this post is to explain some of the practical use-cases of ML solely from a non-technical savvy layman’s perspective w…

Javascript的setTimeOut()和setInterval()的定時器用法

Javascript用來處理延時和定時任務的setTimeOut和setInterval函數應用非常廣泛&#xff0c;它們都用來處理延時和定時任務&#xff0c;比如打開網頁一段時間后彈出一個登錄框&#xff0c;頁面每隔一段時間發送異步請求獲取最新數據等等。但它們的應用是有區別的。 setTimeout()…