当前位置:Gxlcms > 数据库问题 > CentOS下python-sqlite3安装

CentOS下python-sqlite3安装

时间:2021-07-01 10:21:17 帮助过:20人阅读

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

人气教程排行