CentOS升级导致yum错误 No module named sqlite
解决过程
wget centos对应的Python-sqlite rpm包
rpm -Uvh –force python-sqlite.*.rpm
没效果
rpm -e –nodeps python-sqlite
rpm -ivh –nodeps python-sqllite.*.rpm
依然无效
wget centos对应的python-sqlite.*.src.rpm包
rpm -ivh python-sqlite.*.src.rpm
cd /usr/src/RedHat/SPECSrpmbuild -bb *.specscd /usr/src/redhat/RPMS/i386/rpm -Uvh –force new-package.rpm
基本这样就能解决了。