我我綁我的CentOS的服務器上的sqlite3玩,但它始終報告了同樣的錯誤(安裝的模塊)....問題在CentOS蟒蛇2.7.3與sqlite3的模塊
Python 2.7.3 (default, Jun 29 2012, 19:03:18)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "sqlite3/__init__.py", line 24, in <module>
from dbapi2 import *
File "sqlite3/dbapi2.py", line 27, in <module>
from _sqlite3 import *
ImportError: No module named _sqlite3
在Ubuntu
等等工作正常....任何想法,我在這裏失蹤?
我再次重新編譯2.7.3,它很好地捕獲了sqlite3庫。
是否安裝了'蟒蛇,sqlite'模塊? – 2012-07-09 11:25:03
是,在CentOS 6 – dyoser 2012-07-09 11:26:18
這個問題可能會有所幫助: [http://stackoverflow.com/questions/789030/how-can-i-import-the-sqlite3-module-into-python-2-4 ] [1] [1]:http://stackoverflow.com/questions/789030/how-can-i-import-the-sqlite3-module-into-python-2-4 – user1087310 2012-07-09 12:47:55