brew install pkg-configbrew install freetype之后就可以安装matplotlib了sudo pip3 install matplotlib (我的要加上sudo)