TECHIES WORLD

For Techs.... Techniques.... Technologies....

BashLinuxPython

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

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

This error normally happens on complied Python installations and is because of the absence of sqlite libraries. The problem can be resolved by installing the sqlite libraries followed by the recompilation of Python.

#apt-get install libsqlite3-dev

Then recompile and install the Python. Now the module will be available for usage.

That's all…