matplotlib导入出现 No module named '_tkinter'

在python3里导入matplotlib.pyplot出现No module named ‘_tkinter’错误,是因为缺少python3版的tkinter,所以:
sudo apt-get install python3-tk