centos重新安裝,解除安裝python yum
公司測試機環境不知道給我卸了什麼包,導致yum執行報錯狀況:
系統版本:Red Hat Enterprise Linux Server release 6.2 (Santiago)
核心版本:2.6.32-220.el6.x86_64
報錯情況:
There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named sqlite Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is:
一、升級或解除安裝Python導致:
1 2 3 4 5 6 7 8 |
.1.gz
|
二、完全重灌python和yum
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
三、執行python進行測試
1 2 3 4 5 6 7 |
|