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

John Gordon
  • 29,573
  • 7
  • 33
  • 58
  • 1
    The `sqlite3` module should have a `connect` function. Do you have your own local file named `sqlite3.py`? – John Gordon Jun 15 '23 at 02:49
  • https://stackoverflow.com/questions/25705671/python-attributeerror-module-object-has-no-attribute-connect might also help. – zedfoxus Jun 15 '23 at 02:50

0 Answers0