出現(xiàn)這個(gè)提示,乍一看以為沒有安裝freetype的原因,后來找其安裝方法。使用brew install freetype ,有提示already installed。然后又看了很多文章,照著改了很多都沒有辦法。后來胡亂一通查找看到了這個(gè)問答
I think the other answers are on the right track, but I encountered this same problem and can attest that:
brew install pkg-config
brew install freetype
pip install matplotlib
上面意思說這哥們遇到過同樣的問題,下面的能解決。所以試了下brew install pkg-config然后自動(dòng)安裝了,因?yàn)閒reetype已經(jīng)提示安裝了。最后又安裝了一次pip3 install matplotlib成功了