How to install matplotlib

【重要】 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

时间: 2024-10-07 05:46:03

How to install matplotlib的相关文章

When install ”matplotlib” with ”pip”, if you get the following error, it means the “freetype” and “png” libraries needed by matplotlib are not installed:

============================================================================ * The following required packages can not be built: * freetype, png So install them: apt-cache search freetype | grep dev apt-cache search libpng | grep dev sudo apt-get ins

python安装matplotlib:python -m pip install matplotlib报错

matplotlib是python中强大的画图模块. 首先确保已经安装python,然后用pip来安装matplotlib模块. 进入到cmd窗口下,建议执行python -m pip install -U pip setuptools进行升级. 接着键入python -m pip install matplotlib进行自动的安装,系统会自动下载安装包. 安装完成后,可以用python -m pip list查看本机的安装的所有模块,确保matplotlib已经安装成功. 如果你能看的上面的m

Python中使用matplotlib 如何绘制折线图?

本文和大家分享的主要是python开发中matplotlib 绘制折线图相关内容,一起来看看吧,希望对大家学习和使用这部分内容有所帮助. matplotlib 1.安装matplotlib ① linux系统安装 # 安装matplotlib模块 $ sudo apt-get install python3-matplotlib# 如果是python2.7 执行如下命令 $ sudo apt-get install python-matplotlib# 如果你安装较新的Python,安装模块一乐

Windows64 系统下Python、NumPy与matplotlib 安装方法

今下午想用Python跑RNN网络,结果代码在导入包numpy时并没有报错,但是在用里面的函数时报错,因小编也是新手,只学习了Python的基础语法,并没有使用过第三方包,安装了一下午还没弄好,本以为命令行不好用的,但是还真解决了问题, 一.安装Python 步骤:去Python官网下载对应自己电脑位数的MSI安装包,之后运行安装就行了,选择安装组件时,确保勾上了所有的组件.特别要注意选上pip和 Add python.exe to Path,然后多次点击Next即可完成安装. 检验是否安装成功

Py修行路 Matplotlib 绘图及可视化模块

Matplotlib是一个强大的Python绘图和数据可视化的工具包. 安装方法:pip install matplotlib 引用方法:import matplotlib.pyplot as plt 绘图方法 绘图函数:plt.plot() #调用函数生成图像 显示图像:plt.show() #显示图像 注意:每显示一次就会把创建的图对象数据清空,当需要再次显示的话,就需要再创建一个数据 绘图函数语法:plt.plot(["数据1","数据2","数据3

python 安装画图工具matplotlib

安装matplotlib该工具,花费了我半天时间才能安装成功(是在window7 64位     Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] on win32).现将自己安装过程种遇到的种种问题记录下来,希望能帮助到跟我遇到相同问题的朋友. 直接用pip install  matplotlib 命令安装,发现报错:没有安装C++  .freetype.numpy-1.11.2等,安装一次,发

关于 matplotlib

注意,需要 zlib, 需要 Tkinter pip install matplotlib import numpy as np import matplotlib.pyplot as plt plt.figure(1) # 创建图表1 plt.figure(2) # 创建图表2 ax1 = plt.subplot(211) # 在图表2中创建子图1 ax2 = plt.subplot(212) # 在图表2中创建子图2 x = np.linspace(0, 3, 100) for i in x

【Python】Matplotlib

////// HomePage http://matplotlib.org/index.html ////// install # sudo yum install python-matplotlib 已安装: python-matplotlib.x86_64 0:1.2.0-15.el7 作为依赖被安装: agg.x86_64 0:2.5-18.el7 atlas.x86_64 0:3.10.1-10.el7 blas.x86_64 0:3.4.2-5.el7 lapack.x86_64 0:

Ubuntu16.04使用pip3和pip安装numpy,scipy,matplotlib

安装Python3第三方库: sudo apt install python3-pip pip3 install numpy pip3 install scipy pip3 install matplotlib 报错,安装matplotlib库需要安装python3-tk库: sudo apt-get install python3-tk pip3 install matplotlib 报错,安装matplotlib库需要安装nose库: pip3 install nose 安装Python2第