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