执行命令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
本文出自 “菜鸟中的战斗机” 博客,请务必保留此出处http://linushai.blog.51cto.com/4976486/1719487
原文地址:http://linushai.blog.51cto.com/4976486/1719487