安装sqlite3
yum install sqlite sqlite-devel
解决ImportError: No module named _sqlite3的问题
- copy _sqlite3.so到python27 lib-dynload下面
cp /usr/lib64/python2.6/lib-dynload/_sqlite3.so /usr/local/python27/lib/python2.7/lib-dynload/
- 如果还是无法引用添加环境变量
export PYTHONPATH="/usr/local/python27/lib/python2.7/lib:/usr/local/python27/lib/python2.7/lib-dynload/"