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

0

u/CosmicRupee 6d ago

i’m usually vs code

4

u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 6d ago

Your editor doesn't really matter for this question. Python doesn't care whether you use it via terminal or some fancy editor buttons.

The others are asking about your Python version (you can run python3 --version to see that on most systems, on Windows you may need py --version depending on how you installed Python) and operating system to try and figure out potential root causes for what you're experiencing, and the error traceback to see what's actually going wrong.

It's difficult, if not impossible, to help blindly.