Sqlite3 error

1,863 views
Skip to first unread message

chucks ogwo

unread,
Apr 28, 2020, 1:17:03 PM4/28/20
to Django users
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?

LGBS fine soul coders

unread,
Apr 28, 2020, 11:59:22 PM4/28/20
to django...@googlegroups.com
Well try to download sqlite from google then install to your mashine manually dont use pip

--
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...@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.

Kasper Laudrup

unread,
Apr 29, 2020, 6:47:35 AM4/29/20
to django...@googlegroups.com
Hi Chucks,

On 28/04/2020 19.17, chucks ogwo wrote:
>
> 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?
>

https://stackoverflow.com/questions/19530974/how-can-i-add-the-sqlite3-module-to-python
Reply all
Reply to author
Forward
0 new messages