After compiling Python 2.7.5 you may find yourself being unable to to import sqlite3 and receiving the following error message,
Solution
- Install sqlite-devel via ‘yum install sqlite-devel’
- Recompile Python.
Note : Details on how to compile Python can be found within the following article.
Latest posts by Rick Donato (see all)
- NETCONF & YANG: Automate Network Configs via Python - April 2, 2026
- Palo Alto – How to Configure Your Next-Generation Firewall - April 2, 2026
- How to Harden Linux SSH: Keys, Fail2ban & Ciphers - March 1, 2026
Want to become a programming expert ?
Here is our hand-picked selection of the best courses you can find online:
Python Zero to Hero course
Python Pro Bootcamp
Bash Scripting and Shell Programming course
Automate with Shell Scripting course
The Complete Web Development Bootcamp course
and our recommended certification practice exams:
Delta Practice Tests