【重要】 python 2.7.11
// Install pip
curl -O https://bootstrap.pypa.io/get-pip.py
// Install matplotlib
pip install matplotlib
[[email protected] ~]# yum install python-matplotlib
Collecting matplotlib
Downloading matplotlib-1.5.1.tar.gz (54.0MB)
100% |████████████████████████████████| 54.0MB 8.6kB/s
Complete output from command python setup.py egg_info:
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [1.5.1]
python: yes [2.7.11 (default, Dec 15 2015, 23:32:54) [GCC
4.8.5 20150623 (Red Hat 4.8.5-4)]]
platform: yes [linux2]
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [not found. pip may install it below.]
dateutil: yes [dateutil was not found. It is required for date
axis support. pip/easy_install may attempt to
install it after matplotlib.]
pytz: yes [pytz was not found. pip will attempt to install
it after matplotlib.]
cycler: yes [cycler was not found. pip will attempt to
install it after matplotlib.]
tornado: yes [using tornado version 4.3]
pyparsing: yes [pyparsing was not found. It is required for
mathtext support. pip/easy_install may attempt to
install it after matplotlib.]
libagg: yes [pkg-config information for ‘libagg‘ could not
be found. Using local copy.]
freetype: no [The C/C++ header for freetype2 (ft2build.h)
could not be found. You may need to install the
development package.]
png: no [pkg-config information for ‘libpng‘ could not
be found.]
qhull: yes [pkg-config information for ‘qhull‘ could not be
found. Using local copy.]
//////
////// package
//////
yum install freetype-devel
yum install libpng-devel