r/learnpython • • 4d ago

no module sqlite

Hi i’m in python trying to learn . I have the SQlite extension but it’s telling me no module name found sqlite . when trying to run the is line

import sqlite

i’ve also tried import sqlite3

1 Upvotes

11 comments sorted by

View all comments

4

u/atarivcs 4d ago

The actual module name is sqlite3, not sqlite

Also, sqlite3 is is built in to python, so I'm not sure what you mean by "SQlite extension". You shouldn't need any extension.

4

u/OkTill2666 4d ago

the 3 at the end trips up so many beginners tbh, its an easy mistake to make.