pip matplotlib報錯equired packages can not be built解決
pip安裝matplotlib
在centos6.5 64bit上用pip安裝matplotlib時候報錯:
* The following required packages can not be built: * freetype, png error: Setup script exited with 1
這是因為pip不能安裝操作系統(tǒng)的依賴庫導(dǎo)致的,需要用yum手動安裝:
$ yum -y install freetype-devel libpng-devel
如果不知道這些庫需要安裝的包名,可以查一下:
$ yum search freetype | grep devel freetype-devel.i686 : FreeType development libraries and header files freetype-devel.x86_64 : FreeType development libraries and header files $ yum search png | grep devel libpng-devel.i686 : Development tools for programs to manipulate PNG image libpng-devel.x86_64 : Development tools for programs to manipulate PNG image
referance:
python的numpy模塊安裝不成功簡單解決方法總結(jié)
總結(jié)
以上就是本文關(guān)于pip matplotlib報錯equired packages can not be built解決的全部內(nèi)容,希望對大家有所幫助。感興趣的朋友可以繼續(xù)參閱本站其他相關(guān)專題,如有不足之處,歡迎留言指出。感謝朋友們對本站的支持!
相關(guān)文章
Selenium 模擬瀏覽器動態(tài)加載頁面的實現(xiàn)方法
這篇文章主要介紹了Selenium 模擬瀏覽器動態(tài)加載頁面的實現(xiàn)方法,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2018-05-05解決tensorflow測試模型時NotFoundError錯誤的問題
今天小編就為大家分享一篇解決tensorflow測試模型時NotFoundError錯誤的問題,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2018-07-07