centos安装matplotlib报错的解决办法

前端之家收集整理的这篇文章主要介绍了centos安装matplotlib报错的解决办法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
  1. pip install matplotlib==1.5.1
  2. Collecting matplotlib==1.5.1
  3. Complete output from command python setup.py egg_info:
  4. ============================================================================
  5. Edit setup.cfg to change the build options
  6.  
  7. BUILDING MATPLOTLIB
  8. matplotlib: yes [1.5.1]
  9. python: yes [2.7.5 (default,Sep 15 2016,22:37:39) [GCC
  10. 4.8.5 20150623 (Red Hat 4.8.5-4)]]
  11. platform: yes [linux2]
  12.  
  13. required DEPENDENCIES AND EXTENSIONS
  14. numpy: yes [not found. pip may install it below.]
  15. dateutil: yes [dateutil was not found. It is required for date
  16. axis support. pip/easy_install may attempt to
  17. install it after matplotlib.]
  18. pytz: yes [pytz was not found. pip will attempt to install
  19. it after matplotlib.]
  20. cycler: yes [cycler was not found. pip will attempt to
  21. install it after matplotlib.]
  22. tornado: yes [using tornado version 4.4.2]
  23. pyparsing: yes [using pyparsing version 2.1.10]
  24. libagg: yes [pkg-config information for 'libagg' could not
  25. be found. Using local copy.]
  26. freetype: no [The C/C++ header for freetype2 (ft2build.h)
  27. could not be found. You may need to install the
  28. development package.]
  29. png: no [pkg-config information for 'libpng' could not
  30. be found.]
  31. qhull: yes [pkg-config information for 'qhull' could not be
  32. found. Using local copy.]
  33.  
  34. OPTIONAL SUBPACKAGES
  35. sample_data: yes [installing]
  36. toolkits: yes [installing]
  37. tests: yes [nose 0.11.1 or later is required to run the
  38. matplotlib test suite. Please install it with pip or
  39. your preferred tool to run the test suite / mock is
  40. required to run the matplotlib test suite. Please
  41. install it with pip or your preferred tool to run
  42. the test suite]
  43. toolkits_tests: yes [nose 0.11.1 or later is required to run the
  44. matplotlib test suite. Please install it with pip or
  45. your preferred tool to run the test suite / mock is
  46. required to run the matplotlib test suite. Please
  47. install it with pip or your preferred tool to run
  48. the test suite]
  49.  
  50. OPTIONAL BACKEND EXTENSIONS
  51. macosx: no [Mac OS-X only]
  52. qt5agg: no [PyQt5 not found]
  53. qt4agg: no [PySide not found; PyQt4 not found]
  54. gtk3agg: no [Requires gtk3 development files to be
  55. installed.]
  56. gtk3cairo: no [Requires cairocffi or pycairo to be installed.]
  57. gtkagg: no [Requires pygtk]
  58. tkagg: no [TKAgg requires Tkinter.]
  59. wxagg: no [requires wxPython]
  60. gtk: no [Requires pygtk]
  61. agg: yes [installing]
  62. cairo: no [cairocffi or pycairo not found]
  63. windowing: no [Microsoft Windows only]
  64.  
  65. OPTIONAL LATEX DEPENDENCIES
  66. dvipng: no
  67. ghostscript: no
  68. latex: no
  69. pdftops: no
  70.  
  71. OPTIONAL PACKAGE DATA
  72. dlls: no [skipping due to configuration]
  73.  
  74. ============================================================================
  75. * The following required packages can not be built:
  76. * freetype,png
  77.  
  78. ----------------------------------------
  79. Command "python setup.py egg_info" Failed with error code 1 in /tmp/pip-build-SL2bnh/matplotlib/

解决办法



  1. sudo yum install freetype-devel
  2. sudo yum install libpng-devel

猜你在找的CentOS相关文章