手残删除python补救 新建文件夹,下载下面的依赖 wget http://vault.centos.org/7.2.1511/os/x86_64/Packages/python-2.7.5-34.el7.x86_64.rpmwget http://vault.centos.org/7.2.1511/os/x86_64/Packages/python-devel-2.7.5-34.el7.x86_6
手残删除python补救
新建文件夹,下载下面的依赖
wget http://vault.centos.org/7.2.1511/os/x86_64/Packages/python-2.7.5-34.el7.x86_64.rpm wget http://vault.centos.org/7.2.1511/os/x86_64/Packages/python-devel-2.7.5-34.el7.x86_64.rpm wget http://vault.centos.org/7.2.1511/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm wget http://vault.centos.org/7.2.1511/os/x86_64/Packages/python-pycurl-7.19.0-17.el7.x86_64.rpm wget http://vault.centos.org/7.2.1511/os/x86_64/Packages/python-urlgrabber-3.10-7.el7.noarch.rpm wget http://vault.centos.org/7.2.1511/os/x86_64/Packages/python-setuptools-0.9.8-4.el7.noarch.rpm wget http://vault.centos.org/7.2.1511/os/x86_64/Packages/rpm-python-4.11.3-17.el7.x86_64.rpm wget http://vault.centos.org/7.2.1511/os/x86_64/Packages/yum-utils-1.1.31-34.el7.noarch.rpm wget http://vault.centos.org/7.2.1511/os/x86_64/Packages/yum-3.4.3-132.el7.centos.0.1.noarch.rpm wget http://vault.centos.org/7.2.1511/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm wget http://vault.centos.org/7.2.1511/os/x86_64/Packages/yum-plugin-aliases-1.1.31-34.el7.noarch.rpm wget http://vault.centos.org/7.2.1511/os/x86_64/Packages/yum-plugin-protectbase-1.1.31-34.el7.noarch.rpm wget http://vault.centos.org/7.2.1511/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-34.el7.noarch.rpm wget http://vault.centos.org/7.2.1511/os/x86_64/Packages/python-kitchen-1.1.1-5.el7.noarch.rpm wget http://vault.centos.org/7.2.1511/os/x86_64/Packages/python-chardet-2.2.1-1.el7_1.noarch.rpm wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm wget http://mirror.centos.org/centos/7/os/x86_64/Packages/lvm2-python-libs-2.02.185-2.el7.x86_64.rpm
执行命名
rpm -ivh --force *.rpm --nodeps
搞定~
Python恢复删除的文件
1.在被删除文件的上一层文件夹上右键
选择
Local History-->Show History
2.可以单个文件恢复,也可以直接恢复一个文件夹
选中需要恢复的文件(夹),点击左上角revert即可恢复
以上为个人经验,希望能给大家一个参考,也希望大家多多支持易盾网络。