# 下载软件包
wget -c http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/23/x86_64/s/sqlite-3.11.0-3.fc23.x86_64.rpm
wget -c http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/23/x86_64/s/sqlite-libs-3.11.0-3.fc23.x86_64.rpm
#后续链接可能失效,下面提供找包的地址
#https://pkgs.org/
http://www.rpmfind.net/linux/rpm2html/search.php?query=sqlite
# 解压
rpm2cpio sqlite-3.11.0-3.fc23.x86_64.rpm | cpio -idmv
rpm2cpio sqlite-libs-3.11.0-3.fc23.x86_64.rpm | cpio -idmv
#这里会解压出来一个usr的目录
[root@k8s-master01 usr]# ls
bin lib64 share
#拷贝文件
cp usr/bin/sqlite3 /usr/bin/
cp usr/lib64/* /usr/lib64/
cp usr/share/* /usr/lib64/
cp ./usr/* /usr/ -Rf
sqlite版本不正确,找到合适版本的sqlite3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.6/sqlite3/__init__.py", line 23, in <module>
from dbapi2 import *
File "/usr/lib64/python2.6/sqlite3/dbapi2.py", line 26, in <module>
from _sqlite3 import *
ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib64/libsqlite3.so.0)
python 加载模块sqlite
import sqlite3
原文章:https://blog.csdn.net/qq_42883074/article/details/111033849