[root@localhost bin]#

[root@localhost bin]#

[root@localhost bin]#

[root@localhost 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,'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/

[root@localhost bin]#

[root@localhost bin]#

[root@localhost bin]# pip3 install matplotlib

bash: pip3: command not found...

Similar command is: 'pip'

[root@localhost bin]#

[root@localhost bin]#

[root@localhost 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

[root@localhost 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

[root@localhost bin]# pip install pip3

Collecting pip3

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

No matching distribution found for pip3

[root@localhost bin]#

[root@localhost bin]#

[root@localhost bin]#

[root@localhost bin]#

[root@localhost bin]#

[root@localhost 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.

[root@localhost 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!

[root@localhost 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

[root@localhost 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

[root@localhost 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

[root@localhost 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.

[root@localhost 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

[root@localhost bin]#

[root@localhost bin]# pip isntall pypng

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

[root@localhost 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

[root@localhost 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,>=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

[root@localhost bin]#

centos 7 下安装Matplotlib的更多相关文章

  1. XCode 3.2 Ruby和Python模板

    在xcode3.2下,我的ObjectiveCPython/Ruby项目仍然可以打开更新和编译,但是你无法创建新项目.鉴于xcode3.2中缺少ruby和python的所有痕迹(即创建项目并添加新的ruby/python文件),是否有一种简单的方法可以再次安装模板?我发现了一些关于将它们复制到某个文件夹的信息,但我似乎无法让它工作,我怀疑文件夹的位置已经改变为3.2.解决方法3.2中的应用程序模板

  2. Swift基本使用-函数和闭包(三)

    声明函数和其他脚本语言有相似的地方,比较明显的地方是声明函数的关键字swift也出现了Python中的组元,可以通过一个组元返回多个值。传递可变参数,函数以数组的形式获取参数swift中函数可以嵌套,被嵌套的函数可以访问外部函数的变量。可以通过函数的潜逃来重构过长或者太复杂的函数。

  3. 10 个Python中Pip的使用技巧分享

    众所周知,pip 可以安装、更新、卸载 Python 的第三方库,非常方便。本文小编为大家总结了Python中Pip的使用技巧,需要的可以参考一下

  4. Swift、Go、Julia与R能否挑战 Python 的王者地位

    本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请发送邮件至dio@foxmail.com举报,一经查实,本站将立刻删除。

  5. 红薯因 Swift 重写开源中国失败,貌似欲改用 Python

    本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请发送邮件至dio@foxmail.com举报,一经查实,本站将立刻删除。

  6. 你没看错:Swift可以直接调用Python函数库

    上周Perfect又推出了新一轮服务器端Swift增强函数库:Perfect-Python。对,你没看错,在服务器端Swift其实可以轻松从其他语种的函数库中直接拿来调用,不需要修改任何内容。以如下python脚本为例:Perfect-Python可以用下列方法封装并调用以上函数,您所需要注意的仅仅是其函数名称以及参数。

  7. Swift中的列表解析

    在Swift中完成这个的最简单的方法是什么?我在寻找类似的东西:从Swift2.x开始,有一些与你的Python样式列表解析相当的东西。(在这个意义上,它更像是Python的xrange。如果你想保持集合懒惰一路通过,只是这样说:与Python中的列表解析语法不同,Swift中的这些操作遵循与其他操作相同的语法。

  8. swift抛出终端的python错误

    每当我尝试启动与python相关的swift时,我都会收到错误.我该如何解决?

  9. 在Android上用Java嵌入Python

    解决方法看看this,它适用于J2SE,你可以尝试在Android上运行.

  10. 在android studio中使用python代码构建android应用程序

    我有一些python代码和它的机器人,我正在寻找一种方法来使用android项目中的那些python代码.有没有办法做到这一点!?解决方法有两种主要工具可供使用,它们彼此不同:>QPython>Kivy使用Kivy,大致相同的代码也可以部署到IOS.

随机推荐

  1. 在airgapped(离线)CentOS 6系统上安装yum软件包

    我有一个CentOS6系统,出于安全考虑,它已经被空气泄漏.它可能从未连接到互联网,如果有,它很长时间没有更新.我想将所有.rpm软件包放在一个驱动器上,这样它们就可以脱机安装而无需查询互联网.但是,我在测试VM上遇到的问题是,即使指定了本地路径,yum仍然会挂起并尝试从在线存储库进行更新.另外,有没有办法使用yum-utils/yumdownloader轻松获取该包的所有依赖项和所有依赖项?目前

  2. centos – 命名在日志旋转后停止记录到rsyslog

    CentOS6.2,绑定9.7.3,rsyslog4.6.2我最近设置了一个服务器,我注意到在日志轮换后,named已停止记录到/var/log/messages.我认为这很奇怪,因为所有日志记录都是通过rsyslog进行的,并且named不会直接写入日志文件.这更奇怪,因为我在更新区域文件后命名了HUPed,但它仍然没有记录.在我停止并重新启动命名后,记录恢复.这里发生了什么?

  3. centos – 显示错误的磁盘大小

    对于其中一个磁盘,Df-h在我的服务器上显示错误的空白区域:Cpanel表明它只有34GB免费,但还有更多.几分钟前,我删除了超过80GB的日志文件.所以,我确信它完全错了.fdisk-l/dev/sda2也显示错误:如果没有格式化,我该怎么做才能解决这个问题?并且打开文件描述符就是它需要使用才能做到这一点.所以…使用“lsof”并查找已删除的文件.重新启动写入日志文件的服务,你很可能会看到空间可用.

  4. 如何在centos 6.9上安装docker-ce 17?

    我目前正在尝试在centOS6.9服务器上安装docker-ce17,但是,当运行yuminstalldocker-ce时,我收到以下错误:如果我用跳过的标志运行它我仍然得到相同的消息,有没有人知道这方面的方法?

  5. centos – 闲置工作站的异常负载平均值

    我有一个新的工作站,具有不寻常的高负载平均值.机器规格是:>至强cpu>256GB的RAM>4x512GBSSD连接到LSI2108RAID控制器我从livecd安装了CentOS6.564位,配置了分区,网络,用户/组,并安装了一些软件,如开发工具和MATLAB.在启动几分钟后,工作站负载平均值的值介于0.5到0.9之间.但它没有做任何事情.因此我无法理解为什么负载平均值如此之高.你能帮我诊断一下这个问题吗?

  6. centos – Cryptsetup luks – 检查内核是否支持aes-xts-plain64密码

    我在CentOS5上使用cryptsetupluks加密加密了一堆硬盘.一切都很好,直到我将系统升级到CentOS6.现在我再也无法安装磁盘了.使用我的关键短语装载:我收到此错误:在/var/log/messages中:有关如何装载的任何想法?找到解决方案问题是驱动器使用大约512个字符长的交互式关键短语加密.出于某种原因,CentOS6中的新内核模块在由旧版本创建时无法正确读取512个字符的加密密钥.似乎只会影响内核或cryptsetup的不同版本,因为在同一系统上创建和打开时,512字符的密钥将起作用

  7. centos – 大量ssh登录尝试

    22个我今天登录CentOS盒找到以下内容这是过去3天内的11次登录尝试.WTF?请注意,这是我从我的提供商处获得的全新IP,该盒子是全新的.我还没有发布任何关于此框的内容.为什么我会进行如此大量的登录尝试?是某种IP/端口扫描?基本上有4名匪徒,其中2名来自中国,1名来自香港,1名来自Verizon.这只发生在SSH上.HTTP上没有问题.我应该将罪魁祸首子网路由吗?你们有什么建议?

  8. centos – kswap使用100%的CPU,即使有100GB的RAM也可用

    >Linux内核是否应该足够智能,只需从内存中清除旧缓存页而不是启动kswap?

  9. centos – Azure将VM从A2 / 3调整为DS2 v2

    我正在尝试调整前一段时间创建的几个AzureVM,从基本的A3和标准A3到标准的DS2v2.我似乎没有能力调整到这个大小的VM.必须从头开始重建服务器会有点痛苦.如果它有所不同我在VM中运行CentOS,每个都有一个带有应用程序和操作系统的磁盘.任何人都可以告诉我是否可以在不删除磁盘的情况下删除VM,创建新VM然后将磁盘附加到新VM?

  10. centos – 广泛使用RAM时服务器计算速度减慢

    我在非常具体的情况下遇到服务器速度下降的问题.事实是:>1)我使用计算应用WRF>2)我使用双XeonE5-2620v3和128GBRAM(NUMA架构–可能与问题有关!

返回
顶部