django之sqlite3常见错误

执行命令python manage.py runserver 8000时提示如下错误:

django.core.exceptions.ImproperlyConfigured: Error loading either pysqlite2 or sqlite3 modules (tried in that order): No module named _sqlite3

解决方法如下:

wget http://pysqlite.googlecode.com/files/pysqlite-2.6.3.tar.gz
tar zxvf pysqlite-2.6.3.tar.gz
cd pysqlite-2.6.3

python setup.py  install


你可能感兴趣的:(django,sqlite3常见错误)