centos 7 下安装Matplotlib

[[email protected] bin]#

[[email protected] bin]#

[[email protected] bin]#

[[email protected] bin]# pip install matplotlib

Collecting matplotlib

Using cached matplotlib-2.0.2-cp27-cp27mu-manylinux1_x86_64.whl

Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=1.5.6 in /usr/lib/python2.7/site-packages (from matplotlib)

Requirement already satisfied: six>=1.10 in /usr/lib/python2.7/site-packages (from matplotlib)

Requirement already satisfied: pytz in /usr/lib/python2.7/site-packages (from matplotlib)

Requirement already satisfied: functools32 in /usr/lib/python2.7/site-packages (from matplotlib)

Requirement already satisfied: python-dateutil in /usr/lib/python2.7/site-packages (from matplotlib)

Requirement already satisfied: numpy>=1.7.1 in /usr/lib64/python2.7/site-packages (from matplotlib)

Requirement already satisfied: cycler>=0.10 in /usr/lib/python2.7/site-packages (from matplotlib)

Collecting subprocess32 (from matplotlib)

Using cached subprocess32-3.2.7.tar.gz

Installing collected packages: subprocess32, matplotlib

Running setup.py install for subprocess32 ... error

Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__=‘/tmp/pip-build-lXGAiP/subprocess32/setup.py‘;f=getattr(tokenize, ‘open‘, open)(__file__);code=f.read().replace(‘\r\n‘, ‘\n‘);f.close();exec(compile(code, __file__, ‘exec‘))" install --record /tmp/pip-kqqBsj-record/install-record.txt --single-version-externally-managed --compile:

running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-2.7

copying subprocess32.py -> build/lib.linux-x86_64-2.7

running build_ext

building ‘_posixsubprocess‘ extension

creating build/temp.linux-x86_64-2.7

gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c _posixsubprocess.c -o build/temp.linux-x86_64-2.7/_posixsubprocess.o

_posixsubprocess.c:3:20: fatal error: Python.h: No such file or directory

#include "Python.h"

^

compilation terminated.

error: command ‘gcc‘ failed with exit status 1

----------------------------------------

Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__=‘/tmp/pip-build-lXGAiP/subprocess32/setup.py‘;f=getattr(tokenize, ‘open‘, open)(__file__);code=f.read().replace(‘\r\n‘, ‘\n‘);f.close();exec(compile(code, __file__, ‘exec‘))" install --record /tmp/pip-kqqBsj-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-lXGAiP/subprocess32/

[[email protected] bin]#

[[email protected] bin]#

[[email protected] bin]# pip3 install matplotlib

bash: pip3: command not found...

Similar command is: ‘pip‘

[[email protected] bin]#

[[email protected] bin]#

[[email protected] bin]# yum install python3-pip

Loaded plugins: fastestmirror, langpacks

^[[ALoading mirror speeds from cached hostfile

* base: centos.communilink.net

* epel: repo.ugm.ac.id

* extras: mirrors.btte.net

* updates: centos.communilink.net

No package python3-pip available.

Error: Nothing to do

[[email protected] bin]# yum install pip3

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

* base: centos.communilink.net

* epel: mirror.rise.ph

* extras: mirrors.btte.net

* updates: centos.communilink.net

No package pip3 available.

Error: Nothing to do

[[email protected] bin]# pip install pip3

Collecting pip3

Could not find a version that satisfies the requirement pip3 (from versions: )

No matching distribution found for pip3

[[email protected] bin]#

[[email protected] bin]#

[[email protected] bin]#

[[email protected] bin]#

[[email protected] bin]#

[[email protected] bin]# yum search pip

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

* base: centos.communilink.net

* epel: ftp.jaist.ac.jp

* extras: mirrors.btte.net

* updates: centos.communilink.net

====================================================== N/S matched: pip ======================================================

globus-xio-pipe-driver.x86_64 : Globus Toolkit - Globus Pipe Driver

globus-xio-pipe-driver-devel.x86_64 : Globus Toolkit - Globus Pipe Driver Development Files

libpipeline.i686 : A pipeline manipulation library

libpipeline.x86_64 : A pipeline manipulation library

libpipeline-devel.i686 : Header files and libraries for pipeline manipulation library

libpipeline-devel.x86_64 : Header files and libraries for pipeline manipulation library

nodejs-unpipe.noarch : Unpipe a stream from all destinations

pdns-backend-pipe.x86_64 : Pipe backend for pdns

perl-IO-Pipely.noarch : Portably create pipe() or pipe-like handles, one way or another

pipelight-selinux.noarch : SELinux-policy-module for pipelight

rubygem-apipie-bindings.noarch : The Ruby bindings for Apipie documented APIs

rubygem-apipie-bindings-doc.noarch : Documentation for rubygem-apipie-bindings

uwsgi-logger-pipe.x86_64 : uWSGI - logpipe logger plugin

vanessa_socket-pipe.x86_64 : Trivial TCP/IP pipe build using libvanessa_adt

aespipe.x86_64 : AES-based encryption tool for tar/cpio and loop-aes images

globus-xio-popen-driver.x86_64 : Globus Toolkit - Globus XIO Pipe Open Driver

globus-xio-popen-driver-devel.x86_64 : Globus Toolkit - Globus XIO Pipe Open Driver Development Files

nodejs-archy.noarch : Renders nested hierarchies with unicode pipes

nodejs-event-stream.noarch : Construct pipes of streams of events

nodejs-map-stream.noarch : Construct pipes of streams of events

nodejs-stream-combiner.noarch : Turn a pipeline into a single stream

nodejs-streamsink.noarch : Pipe to a buffer, then create readable streams from it

php-react-stream.noarch : Basic readable and writable stream interfaces that support piping

pv.x86_64 : A tool for monitoring the progress of data through a pipeline

python-apipkg.noarch : A Python namespace control and lazy-import mechanism

python-django-pipeline.noarch : An asset packaging library for Django

python-virtualenv-api.noarch : An API for virtualenv/pip

python2-pip.noarch : A tool for installing and managing Python 2 packages

python34-pip.noarch : A tool for installing and managing Python3 packages

vodovod.x86_64 : A pipe connecting game

Name and summary matches only, use "search all" for everything.

[[email protected] bin]# yum install python34-pip

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

* base: centos.communilink.net

* epel: epel.scopesky.iq

* extras: mirrors.btte.net

* updates: centos.communilink.net

Resolving Dependencies

--> Running transaction check

---> Package python34-pip.noarch 0:8.1.2-5.el7 will be installed

--> Processing Dependency: python(abi) = 3.4 for package: python34-pip-8.1.2-5.el7.noarch

--> Processing Dependency: python34-setuptools for package: python34-pip-8.1.2-5.el7.noarch

--> Processing Dependency: /usr/bin/python3.4 for package: python34-pip-8.1.2-5.el7.noarch

--> Running transaction check

---> Package python34.x86_64 0:3.4.5-3.el7 will be installed

--> Processing Dependency: python34-libs(x86-64) = 3.4.5-3.el7 for package: python34-3.4.5-3.el7.x86_64

--> Processing Dependency: libpython3.4m.so.1.0()(64bit) for package: python34-3.4.5-3.el7.x86_64

---> Package python34-setuptools.noarch 0:19.2-3.el7 will be installed

--> Running transaction check

---> Package python34-libs.x86_64 0:3.4.5-3.el7 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================

Package                               Arch                     Version                          Repository              Size

==============================================================================================================================

Installing:

python34-pip                          noarch                   8.1.2-5.el7                      epel                   1.7 M

Installing for dependencies:

python34                              x86_64                   3.4.5-3.el7                      epel                    50 k

python34-libs                         x86_64                   3.4.5-3.el7                      epel                   6.7 M

python34-setuptools                   noarch                   19.2-3.el7                       epel                   373 k

Transaction Summary

==============================================================================================================================

Install  1 Package (+3 Dependent packages)

Total download size: 8.8 M

Installed size: 35 M

Is this ok [y/d/N]: y

Downloading packages:

(1/4): python34-3.4.5-3.el7.x86_64.rpm                                                                 |  50 kB  00:00:04

(2/4): python34-libs-3.4.5-3.el7.x86_64.rpm                                                            | 6.7 MB  00:01:03

(3/4): python34-setuptools-19.2-3.el7.noarch.rpm                                                       | 373 kB  00:00:05

(4/4): python34-pip-8.1.2-5.el7.noarch.rpm                                                             | 1.7 MB  00:00:11

------------------------------------------------------------------------------------------------------------------------------

Total                                                                                         114 kB/s | 8.8 MB  00:01:19

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

Installing : python34-3.4.5-3.el7.x86_64                                                                                1/4

Installing : python34-libs-3.4.5-3.el7.x86_64                                                                           2/4

Installing : python34-setuptools-19.2-3.el7.noarch                                                                      3/4

Installing : python34-pip-8.1.2-5.el7.noarch                                                                            4/4

Verifying  : python34-setuptools-19.2-3.el7.noarch                                                                      1/4

Verifying  : python34-pip-8.1.2-5.el7.noarch                                                                            2/4

Verifying  : python34-libs-3.4.5-3.el7.x86_64                                                                           3/4

Verifying  : python34-3.4.5-3.el7.x86_64                                                                                4/4

Installed:

python34-pip.noarch 0:8.1.2-5.el7

Dependency Installed:

python34.x86_64 0:3.4.5-3.el7       python34-libs.x86_64 0:3.4.5-3.el7       python34-setuptools.noarch 0:19.2-3.el7

Complete!

[[email protected] bin]# yum install python34-setuptools

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

* base: centos.communilink.net

* epel: epel.scopesky.iq

* extras: mirrors.btte.net

* updates: centos.communilink.net

Package python34-setuptools-19.2-3.el7.noarch already installed and latest version

Nothing to do

[[email protected] bin]# easy_install-3.4 pip

Searching for pip

Best match: pip 8.1.2

Adding pip 8.1.2 to easy-install.pth file

Installing pip3.4 script to /usr/bin

Installing pip script to /usr/bin

Installing pip3 script to /usr/bin

Using /usr/lib/python3.4/site-packages

Processing dependencies for pip

Finished processing dependencies for pip

[[email protected] bin]# yum search easy_install

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

* base: centos.communilink.net

* epel: kartolo.sby.datautama.net.id

* extras: mirrors.btte.net

* updates: centos.communilink.net

=================================================== Matched: easy_install ====================================================

python-XStatic-Angular.noarch : Angular 1.2.1 (XStatic packaging standard)

python-XStatic-Angular-Bootstrap.noarch : Angular-Bootstrap (XStatic packaging standard)

python-XStatic-Angular-Cookies.noarch : Angular-Cookies (XStatic packaging standard)

python-XStatic-Angular-Mock.noarch : Angular-Mock (XStatic packaging standard)

python-XStatic-Angular-lrdragndrop.noarch : Angular-lrdragndrop (XStatic packaging standard)

python-XStatic-Bootstrap-Datepicker.noarch : Bootstrap-Datepicker (XStatic packaging standard)

python-XStatic-Bootstrap-SCSS.noarch : Bootstrap-SCSS (XStatic packaging standard)

python-XStatic-D3.noarch : D3 (XStatic packaging standard)

python-XStatic-Font-Awesome.noarch : Font-Awesome (XStatic packaging standard)

python-XStatic-Hogan.noarch : Hogan (XStatic packaging standard)

python-XStatic-JQuery-Migrate.noarch : JQuery-Migrate (XStatic packaging standard)

python-XStatic-JQuery-TableSorter.noarch : JQuery-TableSorter (XStatic packaging standard)

python-XStatic-JQuery-quicksearch.noarch : JQuery-quicksearch (XStatic packaging standard)

python-XStatic-JSEncrypt.noarch : JSEncrypt (XStatic packaging standard)

python-XStatic-Jasmine.noarch : Jasmine (XStatic packaging standard)

python-XStatic-QUnit.noarch : QUnit (XStatic packaging standard)

python-XStatic-Rickshaw.noarch : Rickshaw (XStatic packaging standard)

python-XStatic-Spin.noarch : Spin (XStatic packaging standard)

python-XStatic-jQuery.noarch : jQuery 1.10.2 (XStatic packaging standard)

python-XStatic-jquery-ui.noarch : jquery-ui (XStatic packaging standard)

python-XStatic-smart-table.noarch : smart-table (XStatic packaging standard)

python-XStatic-termjs.noarch : term.js (XStatic packaging standard)

python2-XStatic-roboto-fontface.noarch : roboto-fontface (XStatic packaging standard)

python2-pip.noarch : A tool for installing and managing Python 2 packages

python34-pip.noarch : A tool for installing and managing Python3 packages

[[email protected] bin]# pip install freetype-py

Collecting freetype-py

Using cached freetype-py-1.0.2.tar.gz

Installing collected packages: freetype-py

Running setup.py install for freetype-py ... done

Successfully installed freetype-py-1.0.2

You are using pip version 8.1.2, however version 9.0.1 is available.

You should consider upgrading via the ‘pip install --upgrade pip‘ command.

[[email protected] bin]# pip install --upgrade pip

Collecting pip

Using cached pip-9.0.1-py2.py3-none-any.whl

Installing collected packages: pip

Found existing installation: pip 8.1.2

Uninstalling pip-8.1.2:

Successfully uninstalled pip-8.1.2

Successfully installed pip-9.0.1

[[email protected] bin]#

[[email protected] bin]# pip isntall pypng

ERROR: unknown command "isntall" - maybe you meant "install"

[[email protected] bin]# pip install pypng

Collecting pypng

Using cached pypng-0.0.18.tar.gz

Installing collected packages: pypng

Running setup.py install for pypng ... done

Successfully installed pypng-0.0.18

[[email protected] bin]# pip install matplotlib

Collecting matplotlib

Downloading matplotlib-2.0.2-cp34-cp34m-manylinux1_x86_64.whl (14.6MB)

100% |████████████████████████████████| 14.6MB 63kB/s

Collecting numpy>=1.7.1 (from matplotlib)

Downloading numpy-1.12.1-cp34-cp34m-manylinux1_x86_64.whl (16.8MB)

100% |████████████████████████████████| 16.8MB 55kB/s

Collecting python-dateutil (from matplotlib)

Using cached python_dateutil-2.6.0-py2.py3-none-any.whl

Collecting pytz (from matplotlib)

Downloading pytz-2017.2-py2.py3-none-any.whl (484kB)

100% |████████████████████████████████| 491kB 359kB/s

Collecting cycler>=0.10 (from matplotlib)

Using cached cycler-0.10.0-py2.py3-none-any.whl

Collecting pyparsing!=2.0.0,!=2.0.4,!=2.1.2,!=2.1.6,>=1.5.6 (from matplotlib)

Downloading pyparsing-2.2.0-py2.py3-none-any.whl (56kB)

100% |████████████████████████████████| 61kB 475kB/s

Collecting six>=1.10 (from matplotlib)

Using cached six-1.10.0-py2.py3-none-any.whl

Installing collected packages: numpy, six, python-dateutil, pytz, cycler, pyparsing, matplotlib

Successfully installed cycler-0.10.0 matplotlib-2.0.2 numpy-1.12.1 pyparsing-2.2.0 python-dateutil-2.6.0 pytz-2017.2 six-1.10.0

[[email protected] bin]#

时间: 2024-08-30 05:44:41

centos 7 下安装Matplotlib的相关文章

Centos Linux 下安装matplotlib

1:安装zlib(下载地址) tar -xf zlib-1.2.8.tar.gz cd zlib-1.2.8/ ./configure make make install 2:安装libpng(下载地址) tar -xf  libpng-1.6.24.tar.gz cd libpng-1.6.24/ ./configure make install 3:安装freetype(下载地址) tar -xf freetype-2.4.0.tar.gz cd freetype-2.4.0 ./confi

怎样在CentOS linux下安装MPEG-1 Layer 3 (MP3)解码器

怎样在CENTOS linux下安装MPEG-1 Layer 3 (MP3)解码器 提片上的信息显示我们没有安装解码器,这是因为版权问题软件 没有自带解码器 我的是centos 32位系统所以用下面第一个源 32位系统 第三方源 rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm 64位系统 第三方源 rpm -ivh http://pkgs.repoforge.

centOS 6下安装java、tomcat

centOS 6 下安装java centOS  默认有java的运行环境(gcj),安装sun的jdk前先卸载 gcj. 卸载gcj: #java -version            <-查看当前gcj java的版本号(我这里得到的是 1.4.2) #yum -y remove java-1.4.2-gcj-compat   <- 卸载gcj (y参数表示 在y/n 提问时均回答 y) #chmod a+x jdk-6u14-linux-i586-rmp.bin    <- a+

Linux(CentOS)系统下安装好apache(httpd)服务后,其他电脑无法访问的原因

原文:Linux(CentOS)系统下安装好apache(httpd)服务后,其他电脑无法访问的原因 今天试了下在虚拟机上利用CentOS系统的yum命令安装好了httpd(apache2.4.6),然后在windows系统下访问此虚拟机的ip地址,却访问不了. 因为前段时间有知道过iptable的限制,所以在想是不是因为iptable限制了80端口呢! 所以在网上找了下iptable的命令,并且把tcp的80端口设置成允许任何IP都可以访问: iptables -I INPUT -p TCP

centos 7 下安装cobbler报“ Apps aren&#39;t loaded yet”

版本信息: cobbler-web-2.6.11-1.el7.noarchcobbler-2.6.11-1.el7.x86_64Python 2.7.5Django 1.8.7 yum源: epel-release-7-8.noarch 安装各种包后,启动http报错" Apps aren't loaded yet" 解决方法: [[email protected] web]# pwd/usr/share/cobbler/web[[email protected] web]# vim

CentOS 7 下安装 LEMP 服务(nginx、MariaDB/MySQL 和 php)

原文 CentOS 7 下安装 LEMP 服务(nginx.MariaDB/MySQL 和 php) LEMP 组合包是一款日益流行的网站服务组合软件包,在许多生产环境中的核心网站服务上起着强有力的作用.正如其名称所暗示的, LEMP 包是由 Linux.nginx.MariaDB/MySQL 和 PHP 组成的.在传统的 LAMP 包中使用的 Apache HTTP 协议服务器性能低下而且难于大规模集群,相比来说 nginx 的高性能及轻量级等特性,正是其的替代方案. MariaDB 是一款社

CentOS 6 下安装Python 3

可以下载各个版本的python:https://www.python.org/ftp/python/ 配置安装 下载最新的安装包(截止2013/11/05),还是3.3.2版本. #wget http://python.org/ftp/python/3.5.2//Python-3.5.2.tgz #tar xzf Python-3.5.2.tgz #cd Python-3.5.2 #./configure --prefix=/opt/apps/python3 #make #make instal

Centos | Linux 下安装启动 mysql 出现 8618 [ERROR] Aborting,查看日志:Plugin &#39;FEDERATED&#39; is disabled.

1.试试启动时指定配置文件 ./bin/mysqld_safe --defaults-file=mysql.cnf 或 ./bin/mysqld_safe --defaults-file=mysql.cnf $ 2.试试修改 mysql.cnf(也可能是my.cnf) 在 [mysqld]下指定tmpdir tmpdir = youTmpdir Centos | Linux 下安装启动 mysql 出现 8618 [ERROR] Aborting,查看日志:Plugin 'FEDERATED'

ubuntu 下安装 matplotlib

直接使用sudo easy_install matplotlib 报错 ============================================================================ 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