[問題] Python執行pydotplus出現錯誤?

看板Python作者 (killer01)時間6年前 (2018/03/30 09:08), 編輯推噓3(304)
留言7則, 2人參與, 6年前最新討論串1/1
https://imgur.com/a/ssYHa 請問使用pydotplus的時候, 最後要生成png圖片, 出現問題! TypeError顯示為'Dot' object does not support indexing 要怎麼修改? 程式才能執行? 謝謝大家! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 97.99.89.205 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1522372134.A.B8D.html

03/30 10:09, 6年前 , 1F
改成Image(graph.create_png())試試
03/30 10:09, 1F

03/30 10:51, 6年前 , 2F
有試過, 會跑出不同的錯誤...
03/30 10:51, 2F

03/30 10:53, 6年前 , 3F
InvocationException: GraphViz's executables not foun
03/30 10:53, 3F

03/30 11:14, 6年前 , 4F
你要裝graphviz,還要設好路徑...
03/30 11:14, 4F

03/30 11:17, 6年前 , 5F
graphviz是另外的執行檔,不是python的套件.
03/30 11:17, 5F

03/30 12:32, 6年前 , 6F
可以用了! 謝謝~ 但是Image(graph[0].create_png())
03/30 12:32, 6F

03/30 12:32, 6年前 , 7F
還是不能跑.... 我再研究看看....
03/30 12:32, 7F
文章代碼(AID): #1QlOuckD (Python)