matplotlib error - no module named tkinter

后端 未结 16 1714
被撕碎了的回忆
被撕碎了的回忆 2020-11-28 04:10

I tried to use the matplotlib package via Pycharm IDE on windows 10. when I run this code:

from matplotlib import pyplot

I get the followin

16条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-28 04:30

    If you are using python 3.6, this worked for me:

    sudo apt-get install python3.6-tk
    

    instead of

    sudo apt-get install python3-tk
    

    Which works for other versions of python3

提交回复
热议问题