tkagg backend problems

前端 未结 2 1599
萌比男神i
萌比男神i 2021-01-17 10:28

I need to use the Tkagg backent to use matplotlib in a Tkinter program, and I received the \"ImportError: No module named backend_tkagg\" error message.

Looking arou

2条回答
  •  轮回少年
    2021-01-17 11:15

    I solved it by compiling matplotlib from source. It has Tkagg active by default. Only problem was it didn't compile Tkagg since I didn't have tk-devel installed... after installing it everything went ok.

    So I still don't know if easy_install matplotlib doesn't use TkAgg by design, or if it too checked and noticed that I didn't have Tk.h installed, but anyway this is the way to go.

提交回复
热议问题