r/learnpython • u/CosmicRupee • 23d 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
View all comments
Show parent comment
4
u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 23d 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 --versionto see that on most systems, on Windows you may needpy --versiondepending 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.