sblck
sblck

Reputation: 137

How to import sqlite3 in pycharm?

How can I use sqlite3 in pycharm?

I found out that sqlite3 is basically included in standard library. However, when I try to import it, the module is not found.

import sqlite3 << this returns a import error.

Is sqlite3 module name different in pycharm?

Upvotes: 0

Views: 6356

Answers (1)

Ikhurana
Ikhurana

Reputation: 162

Putting answer for anyone who lands on this page searching for a solution for Windows OS:

For me the issue was with DLL file of sqlite3. Solution:

  1. I took DLL file from sqlite site. This might vary based on your version of python installation.

  2. I pasted it in the DLL directory of the env. for me it was "C:\Anaconda\Lib", but check for yours. Before and After placing DLL file

Upvotes: 1

Related Questions