进入python shell,执行下 import matplotlib 看看,如果提示错误,就是没有正确安装,安装应该也简单pip install matplotlib应该就行了。我用的是python2.7,3.5没试过