Python 2.7.5 : ImportError: No module named _sqlite3

After compiling Python 2.7.5 you may find yourself being unable to to import sqlite3 and receiving the following error message,

ImportError: No module named _sqlite3


  1. Install sqlite-devel via 'yum install sqlite-devel'
  2. Recompile Python.

Note : Details on how to compile Python can be found within the following article.



About the Author


R Donato

Rick Donato is the Founder and Chief Editor of He currently works as an SDN/NFV Solutions Architect and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001