手残删除python之后的补救方法
程序员文章站
2022-03-05 21:29:07
手残删除python补救新建文件夹,下载下面的依赖wget http://vault.centos.org/7.2.1511/os/x86_64/packages/python-2.7.5-34.e...
手残删除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即可恢复
以上为个人经验,希望能给大家一个参考,也希望大家多多支持。
下一篇: b站录播姬怎么录屏?b站录播姬录屏教程