[Tutor] Compiling python and SQlite3 prob on ubuntu 10.10

b vivek bvivek1978 at gmail.com
Tue Oct 12 22:04:17 CEST 2010

Hi, I am using the recently released python10.10 and wanted to install
python2.5.4 on my system to do some app engine development, and this is what
I did:-

1.I downloaded Python-2.5.4.tgz.tar from the python site.
2.cd Downloads

tar -xvzf Python-2.5.4.tgz.tar
cd Python-2.5.4
./configure --prefix=/usr/local/python2.5.4
make test
sudo make install
sudo ln -s /usr/local/python2.5.4/bin/python /usr/bin/python2.5.4

However after installing it, when I try using it , I get the below error:-
line 52, in <module>
    import sqlite3
  File "/usr/local/python2.5.4/lib/python2.5/sqlite3/__init__.py", line 24,
in <module>
    from dbapi2 import *
  File "/usr/local/python2.5.4/lib/python2.5/sqlite3/dbapi2.py", line 27, in
    from _sqlite3 import *
ImportError: No module named _sqlite3

How do I get to solve this. Need someone to help me here please!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20101013/97f3fbf4/attachment.html>

More information about the Tutor mailing list