在使用matplotlib时,会出现`ImportError: No module named '_tkinter'问题。

原因:没有安装tk图形库。

解决方法:

   sudo yum install -y tkinter

   sudo yum install -y tk-devel