看板 Python 關於我們 聯絡資訊
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
vfgce: 改成Image(graph.create_png())試試 03/30 10:09
killer01: 有試過, 會跑出不同的錯誤... 03/30 10:51
killer01: InvocationException: GraphViz's executables not foun 03/30 10:53
vfgce: 你要裝graphviz,還要設好路徑... 03/30 11:14
vfgce: graphviz是另外的執行檔,不是python的套件. 03/30 11:17
killer01: 可以用了! 謝謝~ 但是Image(graph[0].create_png()) 03/30 12:32
killer01: 還是不能跑.... 我再研究看看.... 03/30 12:32