tkagg backend problems

前端 未结 2 1581
萌比男神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:10

    I had this issue today.

    By default, Tkagg was not available for me (Ubuntu 14.04), so I ran:

    sudo apt-get install tk-dev libpng-dev libffi-dev dvipng texlive-latex-base
    

    Then uninstalled and reinstalled matplotlib:

    pip uninstall matplotlib
    pip install matplotlib
    

提交回复
热议问题