matplotlib error - no module named tkinter

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

    On CentOS 7 and Python 3.4, the command is sudo yum install python34-tkinter

    On Redhat 7.4 with Python 3.6, the command is sudo yum install rh-python36-python-tkinter

提交回复
热议问题