猿问

python matplotlib 的安装问题

1.系统环境python----->2.7.3ubuntu---->12.04pip---->9.0.1
2.在使用pipinstallmatplotlib报错:
Completeoutputfromcommandpythonsetup.pyegg_info:
============================================================================
Editsetup.cfgtochangethebuildoptions
BUILDINGMATPLOTLIB
matplotlib:yes[2.0.2]
python:yes[2.7.3(default,Jun222015,19:43:34)[GCC
4.6.3]]
platform:yes[linux2]
REQUIREDDEPENDENCIESANDEXTENSIONS
numpy:yes[version1.13.1]
six:yes[usingsixversion1.10.0]
dateutil:yes[usingdateutilversion1.5]
functools32:yes[functools32wasnotfound.Itisrequired
forPythonversionspriorto3.2]
subprocess32:yes[subprocess32wasnotfound.ItusedforPython
versionspriorto3.2toimprovesfunctionalityon
LinuxandOSX]
pytz:yes[usingpytzversion2017.2]
cycler:yes[cyclerwasnotfound.pipwillattemptto
installitaftermatplotlib.]
tornado:yes[tornadowasnotfound.Itisrequiredforthe
WebAggbackend.pip/easy_installmayattemptto
installitaftermatplotlib.]
pyparsing:yes[pyparsingwasnotfound.Itisrequiredfor
mathtextsupport.pip/easy_installmayattemptto
installitaftermatplotlib.]
libagg:yes[pkg-configinformationfor'libagg'couldnot
befound.Usinglocalcopy.]
freetype:no[TheC/C++headerforfreetype2(ft2build.h)
couldnotbefound.Youmayneedtoinstallthe
developmentpackage.]
png:no[pkg-configinformationfor'libpng'couldnot
befound.]
qhull:yes[pkg-configinformationfor'qhull'couldnotbe
found.Usinglocalcopy.]
OPTIONALSUBPACKAGES
sample_data:yes[installing]
toolkits:yes[installing]
tests:no[skippingduetoconfiguration]
toolkits_tests:no[skippingduetoconfiguration]
OPTIONALBACKENDEXTENSIONS
macosx:no[MacOS-Xonly]
qt5agg:no[PyQt5notfound]
qt4agg:no[PySidenotfound;PyQt4notfound]
gtk3agg:yes[installing,version3.2.4]
gtk3cairo:yes[installing,version3.2.4]
gtkagg:no[TheC/C++headerforgtk(gtk/gtk.h)couldnot
befound.Youmayneedtoinstallthedevelopment
package.]
tkagg:yes[installing;run-timeloadingfromPythonTcl/
Tk]
wxagg:no[requireswxPython]
gtk:no[TheC/C++headerforgtk(gtk/gtk.h)couldnot
befound.Youmayneedtoinstallthedevelopment
package.]
agg:yes[installing]
cairo:yes[installing,pycairoversion1.8.8]
windowing:no[MicrosoftWindowsonly]
OPTIONALLATEXDEPENDENCIES
dvipng:no
ghostscript:yes[version9.05]
latex:no
pdftops:yes[version0.18.4]
OPTIONALPACKAGEDATA
dlls:no[skippingduetoconfiguration]
============================================================================
*Thefollowingrequiredpackagescannotbebuilt:
*freetype,png
----------------------------------------
Command"pythonsetup.pyegg_info"failedwitherrorcode1in/tmp/pip-build-xxOWwU/matplotlib/
pip我已經更新到最新版本了:pipinstall--upgradepip
求大神帮忙看看,怎么解决!
手掌心
浏览 2808回答 2
2回答

呼唤远方

一般建议你使用apt-get进行安装可以省很多的事情,直接使用:apt-getinstallpython-matplotlib它会自动解决一些依赖包,实际上使用pip安装有一些C库比如jpeg、png你要安装后才可以正常安装成功的。
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答