在绘图的时候import matplotlib.pyplot as plt报错:ImportError: No module named '_tkinter', please install the python-tk package时间:2023-03-09 00:36:32 在绘图的时候import matplotlib.pyplot as plt报错:ImportError: No module named '_tkinter', please install the python-tk package 报错原因:没有安装Tkinter 解决方法:sudo apt-get install python-tk 切记,不要用pip解决,pip不能解决问题