1.查看自己系统是否安装了中文字体 看是否有这个目录,如果没有的话,则进行安装 2.安装中文的字体 sudo apt-get install ttf-wqy-zenhei 3.测试matplotlib进行显示中文字体 from matplotlib.font_manager import FontProperties font = FontProperties(fname='/usr/share/fonts/truetype/wqy