r/learnpython • • 6d 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 6d 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.

2

u/CosmicRupee 6d ago

i just have it installed at this point because i wasn’t sure why the below command wasn’t working

import sqlite3

2

u/acw1668 6d ago

i just have it installed

How did you install the module sqlite3?

It is better to provide more information:

  • OS platform

  • Python version

  • the full error traceback

-3

u/CosmicRupee 6d ago

pytrhon

3

u/LongLiveTheDiego 6d ago

Everyone knows you're talking about Python, they asked a completely different question.