使用wget分别下载python以及yum的rpm包
资源地址如下: http://vault.centos.org
mkdir /usr/local/src/python
cd /usr/local/src/python
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/python-backports-1.0-8.el7.x86_64.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/python-2.7.5-76.el7.x86_64.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/python-chardet-2.2.1-1.el7_1.noarch.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/python-devel-2.7.5-76.el7.x86_64.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/python-ipaddress-1.0.16-2.el7.noarch.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/python-kitchen-1.1.1-5.el7.noarch.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/python-libs-2.7.5-76.el7.x86_64.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/python-pycurl-7.19.0-19.el7.x86_64.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/python-setuptools-0.9.8-7.el7.noarch.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/python-urlgrabber-3.10-9.el7.noarch.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/python-virtualenv-15.1.0-2.el7.noarch.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/rpm-4.11.3-35.el7.x86_64.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/rpm-build-4.11.3-35.el7.x86_64.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/rpm-build-libs-4.11.3-35.el7.x86_64.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/rpm-libs-4.11.3-35.el7.x86_64.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/rpm-python-4.11.3-35.el7.x86_64.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/rpm-sign-4.11.3-35.el7.x86_64.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/yum-3.4.3-161.el7.centos.noarch.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/yum-plugin-aliases-1.1.31-50.el7.noarch.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-50.el7.noarch.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/yum-plugin-protectbase-1.1.31-50.el7.noarch.rpm
wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/yum-utils-1.1.31-50.el7.noarch.rpm
强制安装
[root@master01 python]# rpm -Uvh --replacepkgs libxml2-python*.rpm --nodeps --force
Preparing... ################################# [100%]
Updating / installing...
1:libxml2-python-2.9.1-6.el7_2.3 ################################# [100%]
[root@master01 python]# rpm -Uvh --replacepkgs python*.rpm --nodeps --force
Preparing... ################################# [100%]
Updating / installing...
1:python-libs-2.7.5-76.el7 ################################# [ 8%]
2:python-2.7.5-76.el7 ################################# [ 15%]
3:python-backports-1.0-8.el7 ################################# [ 23%]
4:python-chardet-2.2.1-1.el7_1 ################################# [ 31%]
5:python-devel-2.7.5-76.el7 ################################# [ 38%]
6:python-ipaddress-1.0.16-2.el7 ################################# [ 46%]
7:python-backports-ssl_match_hostna################################# [ 54%]
8:python-setuptools-0.9.8-7.el7 ################################# [ 62%]
9:python-pycurl-7.19.0-19.el7 ################################# [ 69%]
10:python-urlgrabber-3.10-9.el7 ################################# [ 77%]
11:python-virtualenv-15.1.0-2.el7 ################################# [ 85%]
12:python-kitchen-1.1.1-5.el7 ################################# [ 92%]
13:python-iniparse-0.4-9.el7 ################################# [100%]
[root@master01 python]# rpm -Uvh --replacepkgs rpm-python*.rpm yum*.rpm --nodeps --force
Preparing... ################################# [100%]
Updating / installing...
1:yum-metadata-parser-1.1.4-10.el7 ################################# [ 10%]
2:rpm-python-4.11.3-35.el7 ################################# [ 20%]
3:yum-plugin-fastestmirror-1.1.31-5################################# [ 30%]
4:yum-3.4.3-161.el7.centos ################################# [ 40%]
5:yum-utils-1.1.31-50.el7 ################################# [ 50%]
6:yum-plugin-aliases-1.1.31-50.el7 ################################# [ 60%]
7:yum-plugin-protectbase-1.1.31-50.################################# [ 70%]
Cleaning up / removing...
8:yum-utils-1.1.31-54.el7_8 ################################# [ 80%]
9:yum-plugin-fastestmirror-1.1.31-5################################# [ 90%]
10:yum-3.4.3-168.el7.centos ################################# [100%]
标签:x86,Centos,python,python2.7,centos,64,org,报错,el7 From: https://www.cnblogs.com/vzhangxk/p/17665730.html