出現(xiàn)這個(gè)提示纫普,乍一看以為沒(méi)有安裝freetype的原因,后來(lái)找其安裝方法好渠。使用brew install freetype 昨稼,有提示already installed。然后又看了很多文章拳锚,照著改了很多都沒(méi)有辦法假栓。后來(lái)胡亂一通查找看到了這個(gè)問(wèn)答
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
上面意思說(shuō)這哥們遇到過(guò)同樣的問(wèn)題,下面的能解決霍掺。所以試了下brew install pkg-config
然后自動(dòng)安裝了匾荆,因?yàn)閒reetype已經(jīng)提示安裝了。最后又安裝了一次pip3 install matplotlib
成功了