fir3net
PPS-Firenetbanner-780.5x190-30-03-17

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

Solution

  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

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001