CentOS 6.6 安装pip

前一篇讲了如何在linux中安装python 2.7.8,接下来继续安装pip,pip是python安装各种包的工具,是非常腻害的工具


在安装过程中,经常报 :nothing to do,有很多原因,其中一个原因是虚拟机竟然没有连网,简直是太扯了,对自己太无语了。。。


1、先安装扩展源EPEL

显然,os中的源已经是安装了,而且是最新版本:

[root@wc1 ~]# yum install epel-release -y
Loaded plugins: fastestmirror,refresh-packagekit,security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.ustc.edu.cn
 * epel: mirror01.idc.hinet.net
 * extras: ftp.sjtu.edu.cn
 * updates: centos.ustc.edu.cn
Package epel-release-6-8.noarch already installed and latest version
nothing to do

2、安装pip

一开始我以为安装pip就是命令:yum -y install pip,但是报错说:找不到数据源。。。

后来搜了一下,才知道要安装的是 python-pip:

[root@wc1 ~]# yum -y install python-pip
Loaded plugins: fastestmirror,security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.ustc.edu.cn
 * epel: mirror.premi.st
 * extras: ftp.sjtu.edu.cn
 * updates: centos.ustc.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package python-pip.noarch 0:7.1.0-1.el6 will be installed
--> Processing Dependency: python-setuptools for package: python-pip-7.1.0-1.el6.noarch
--> Running transaction check
---> Package python-setuptools.noarch 0:0.6.10-3.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                  Arch          Version               Repository   Size
================================================================================
Installing:
 python-pip               noarch        7.1.0-1.el6           epel        1.5 M
Installing for dependencies:
 python-setuptools        noarch        0.6.10-3.el6          base        336 k

Transaction Summary
================================================================================
Install       2 Package(s)

Total download size: 1.9 M
Installed size: 8.1 M
Downloading Packages:
(1/2): python-pip-7.1.0-1.el6.noarch.rpm                 | 1.5 MB     00:02     
(2/2): python-setuptools-0.6.10-3.el6.noarch.rpm         | 336 kB     00:00     
--------------------------------------------------------------------------------
Total                                           331 kB/s | 1.9 MB     00:05     
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature,key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
 Userid : EPEL (6) <epel@fedoraproject.org>
 Package: epel-release-6-8.noarch (@extras)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : python-setuptools-0.6.10-3.el6.noarch                        1/2 
  Installing : python-pip-7.1.0-1.el6.noarch                                2/2 
  Verifying  : python-pip-7.1.0-1.el6.noarch                                1/2 
  Verifying  : python-setuptools-0.6.10-3.el6.noarch                        2/2 

Installed:
  python-pip.noarch 0:7.1.0-1.el6                                               

Dependency Installed:
  python-setuptools.noarch 0:0.6.10-3.el6                                       

Complete!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native
centos6.5下postgres-XC集群安装与配置
CentOS 6使用openssl搭建根CA
CentOS6.6中安装VNC server
CentOS下更新Python最新版本
Centos安装pycurl
CentOS 7 安装PostGIS
CentOS 7.1PXE网络自动化安装
CentOS下ffmpeg与第三方编码编译安装
CentOS 6.4安装配置squid
CentOS6.5 安装配置drbd
CentOS6.4 安装jenkins
centos安装增强工具
CentOS6.4安装配置redis
CentOS 6上部署OpenVPN Server