CentOS下python-sqlite3安装

 先安装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/

posted on 2017-04-05 15:58  Sunnynanbing  阅读(980)  评论(0编辑  收藏  举报

导航