ImportError: No module named _sqlite3 mac code example Example: No module named '_sqlite3 sudo apt-get install libsqlite3-dev pip install pysqlite