0

Everytime I run sqlite command in VS code, this is what comes:

File "c:\Users\Jeffrey Mintah\OneDrive\Desktop\Py learnin\saaaaa.py", line 3, in <module>
    Jeffrey =sqlite3.connect('C:/Users/ Mintah/OneDrive/Desktop/This.db')
             ^^^^^^^^^^^^^^^
AttributeError: module 'sqlite3' has no attribute 'connect'
PS C:\Users\Jeffrey Mintah\OneDrive\Desktop\My first Databse> 

I have added it on my path too. It's not working still

2
  • 1
    The sqlite3 module should have a connect function. Do you have your own local file named sqlite3.py? Commented Jun 15, 2023 at 2:49
  • stackoverflow.com/questions/25705671/… might also help. Commented Jun 15, 2023 at 2:50

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.