2010-04-13 118 views
0

我的程序使用sqlite3 plus python。它正常工作與Python 2.6.2 我把它另一臺機器並安裝了2.6.4和運行程序給了我這個錯誤python sqlite失敗

File "", line 1, in

File "/opt/python-2.6.4/lib/python2.6/sqlite3/init.py", line 24, in

from dbapi2 import *

File "/opt/python-2.6.4/lib/python2.6/sqlite3/dbapi2.py", line 27, in

from _sqlite3 import *

ImportError: No module named _sqlite3

+0

http://stackoverflow.com/questions/233320/cannot-import-sqlite-with-python-2-6 – SilentGhost 2010-04-13 13:47:20

回答

1

cannot-import-sqlite-with-python-2-6

您缺少.so(共享對象) - 可能是安裝步驟。

+0

可能的重複感謝..安裝sqlite3-devel軟件包,然後編譯和安裝..現在它加工。 – 2010-04-13 13:40:54