Cannot import SQLite with Python 2.6
Posted
by David McLaughlin
on Stack Overflow
See other posts from Stack Overflow
or by David McLaughlin
Published on 2008-10-24T12:33:24Z
Indexed on
2010/04/22
15:53 UTC
Read the original article
Hit count: 254
I'm running Python 2.6 on Unix and when I run the interactive prompt (SQLite is supposed to be preinstalled) I get:
[root@idev htdocs]# python
Python 2.6 (r26:66714, Oct 23 2008, 16:25:34)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named sqlite
>>> import sqlite
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named sqlite
>>>
How do I resolve this?
© Stack Overflow or respective owner