matplotlib error - no module named tkinter

后端 未结 16 1661
被撕碎了的回忆
被撕碎了的回忆 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:37

    Since I'm using Python 3.7 on Ubuntu I had to use:

    sudo apt-get install python3.7-tk
    

提交回复
热议问题