直接使用sudo easy_install matplotlib 報(bào)錯(cuò)
============================================================================ Edit setup.cfg to change the build options BUILDING MATPLOTLIB matplotlib: yes [1.3.1] python: yes [2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2]] platform: yes [linux2] REQUIRED DEPENDENCIES AND EXTENSIONS numpy: yes [version 1.8.1] dateutil: yes [dateutil was not found. It is required for date axis support. pip/easy_install may attempt to install it after matplotlib.] tornado: yes [tornado was not found. It is required for the WebAgg backend. pip/easy_install may attempt to install it after matplotlib.] pyparsing: yes [pyparsing was not found. It is required for mathtext support. pip/easy_install may attempt to install it after matplotlib.] pycxx: yes [Couldn't import. Using local copy.] libagg: yes [pkg-config information for 'libagg' could not be found. Using local copy.] freetype: no [pkg-config information for 'freetype2' could not be found.] png: yes [pkg-config information for 'libpng' could not be found. Using unknown version.] OPTIONAL SUBPACKAGES sample_data: yes [installing] toolkits: yes [installing] tests: yes [nose 0.11.1 or later is required to run the matplotlib test suite] OPTIONAL BACKEND EXTENSIONS macosx: no [Mac OS-X only] qt4agg: yes [installing, Qt: 4.8.6, PyQt4: 4.10.4] gtk3agg: yes [installing, version 3.8.10] gtk3cairo: yes [installing, version 3.8.10] gtkagg: no [The C/C++ header for gtk (gtk/gtk.h) could not be found. You may need to install the development package.] tkagg: no [TKAgg requires Tkinter.] wxagg: no [requires wxPython] gtk: no [The C/C++ header for gtk (gtk/gtk.h) could not be found. You may need to install the development package.] agg: yes [installing] cairo: yes [installing, version 1.8.8] windowing: no [Microsoft Windows only] OPTIONAL LATEX DEPENDENCIES dvipng: no ghostscript: yes [version 9.10] latex: no pdftops: yes [version 0.24.5] ============================================================================ * The following required packages can not be built: * freetype error: Setup script exited with 1幾個(gè)依賴(lài)關(guān)系不好找,各自是numpy tornado pyparsing freetye png
sudo easy_install numpy
sudo easy_install tornado
sudo easy_install pyparsingsudo apt-get install libfreetype6
sudo apt-get install libpng12-dev
?sudo easy_install matplotlib
更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號(hào)聯(lián)系: 360901061
您的支持是博主寫(xiě)作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對(duì)您有幫助就好】元
