先安装SQLite3,然后重新安装Python。
1 安装SQLite3。
1)wget http://www.sqlite.org/sqlite-3.5.6.tar.gz
2)tar -xzvf sqlite-3.5.6.tar.gz
3)cd sqlite-3.5.6
4)./configure --disable-tcl
5)make
6)make install
2 重新安装Python。
1)wget http://www.python.org/ftp/python/2.5.6/Python-2.5.6c1.tgz
2)tar -xzvf Python-2.5.6c1.tgz
3)cd Python-2.5.6c1
4)./configure
5)make
6)make install
3 测试。
Python shell下导入sqlite3,如果没出错就说明安装成功了。
PS:更多Python版本下载 http://www.python.org/ftp/python/
CentOS下python-sqlite3安装
标签:成功 shell 重新安装 make str tar.gz 5.6 安装 isa
本文系统来源:http://www.cnblogs.com/Sunnynanbing/p/6669109.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!