Tuesday, April 28, 2020

Sqlite3 error

Hi, Everyone, I have been trying to interact with the sqlite3 database on Pycharm, every time I run the code it gives me an import error. 


Traceback (most recent call last):
  File ".\file.py", line 1, in <module>
    import sqlite3
  File "C:\Users\Dell\anaconda3\lib\sqlite3\__init__.py", line 23, in <module>
    from sqlite3.dbapi2 import *
  File "C:\Users\Dell\anaconda3\lib\sqlite3\dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ImportError: DLL load failed: The specified module could not be found.

(venv) C:\Users\Dell\PycharmProjects\interact_with_database>


I also tried to use pip to install sqlite3, it does not work too, I get a different error. 


(venv) C:\Users\Dell\PycharmProjects\interact_with_database>pip install sqlite3
Collecting sqlite3
  Could not find a version that satisfies the requirement sqlite3 (from versions: )
No matching distribution found for sqlite3

(venv) C:\Users\Dell\PycharmProjects\interact_with_database>


Does anyone know how I can solve this problem?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d3220c84-cfa9-4bd7-9890-3cdbf9a5493f%40googlegroups.com.

No comments:

Post a Comment