xxxpython
[root@localhost ~]# yum install epel-release Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.163.com * extras: mirrors.sohu.com * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package epel-release.noarch 0:7-9 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================== Package Arch Version Repository Size ============================================================================================================== Installing: epel-release noarch 7-9 extras 14 k Transaction Summary ============================================================================================================== Install 1 Package Total download size: 14 k Installed size: 24 k Is this ok [y/d/N]: y Downloading packages: warning: /var/cache/yum/x86_64/7/extras/packages/epel-release-7-9.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Public key for epel-release-7-9.noarch.rpm is not installed epel-release-7-9.noarch.rpm | 14 kB 00:00:00 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-3.1611.el7.centos.x86_64 (@anaconda) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Is this ok [y/N]: y Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : epel-release-7-9.noarch 1/1 Verifying : epel-release-7-9.noarch 1/1 Installed: epel-release.noarch 0:7-9 Complete! [root@localhost ~]# yum install pip Loaded plugins: fastestmirror epel/x86_64/metalink | 5.7 kB 00:00:00 epel | 4.3 kB 00:00:00 (1/3): epel/x86_64/group_gz | 170 kB 00:00:00 (2/3): epel/x86_64/updateinfo | 798 kB 00:00:00 (3/3): epel/x86_64/primary_db | 4.8 MB 00:00:00 Loading mirror speeds from cached hostfile * base: mirrors.163.com * epel: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.sohu.com * updates: mirrors.163.com No package pip available. Error: Nothing to do [root@localhost ~]# yum install python-pip Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.163.com * epel: mirror01.idc.hinet.net * extras: mirrors.sohu.com * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package python2-pip.noarch 0:8.1.2-5.el7 will be installed --> Processing Dependency: python-setuptools for package: python2-pip-8.1.2-5.el7.noarch --> Running transaction check ---> Package python-setuptools.noarch 0:0.9.8-4.el7 will be installed --> Processing Dependency: python-backports-ssl_match_hostname for package: python-setuptools-0.9.8-4.el7.noarch --> Running transaction check ---> Package python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el7 will be installed --> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch --> Running transaction check ---> Package python-backports.x86_64 0:1.0-8.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================== Package Arch Version Repository Size ============================================================================================================== Installing: python2-pip noarch 8.1.2-5.el7 epel 1.7 M Installing for dependencies: python-backports x86_64 1.0-8.el7 base 5.8 k python-backports-ssl_match_hostname noarch 3.4.0.2-4.el7 base 12 k python-setuptools noarch 0.9.8-4.el7 base 396 k Transaction Summary ============================================================================================================== Install 1 Package (+3 Dependent packages) Total download size: 2.1 M Installed size: 9.1 M Is this ok [y/d/N]: y Downloading packages: (1/4): python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch.rpm | 12 kB 00:00:00 (2/4): python-backports-1.0-8.el7.x86_64.rpm | 5.8 kB 00:00:00 warning: /var/cache/yum/x86_64/7/epel/packages/python2-pip-8.1.2-5.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY Public key for python2-pip-8.1.2-5.el7.noarch.rpm is not installed (3/4): python2-pip-8.1.2-5.el7.noarch.rpm | 1.7 MB 00:00:01 (4/4): python-setuptools-0.9.8-4.el7.noarch.rpm | 396 kB 00:00:01 -------------------------------------------------------------------------------------------------------------- Total 1.9 MB/s | 2.1 MB 00:00:01 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Importing GPG key 0x352C64E5: Userid : "Fedora EPEL (7) <epel@fedoraproject.org>" Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5 Package : epel-release-7-9.noarch (@extras) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Is this ok [y/N]: y Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : python-backports-1.0-8.el7.x86_64 1/4 Installing : python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch 2/4 Installing : python-setuptools-0.9.8-4.el7.noarch 3/4 Installing : python2-pip-8.1.2-5.el7.noarch 4/4 Verifying : python2-pip-8.1.2-5.el7.noarch 1/4 Verifying : python-setuptools-0.9.8-4.el7.noarch 2/4 Verifying : python-backports-1.0-8.el7.x86_64 3/4 Verifying : python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch 4/4 Installed: python2-pip.noarch 0:8.1.2-5.el7 Dependency Installed: python-backports.x86_64 0:1.0-8.el7 python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el7 python-setuptools.noarch 0:0.9.8-4.el7 Complete! [root@localhost ~]# pip install --upgrade pip Collecting pip Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB) 100% |████████████████████████████████| 1.3MB 101kB/s 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