I am trying to do the following in Python 3.7.6 on Windows on Pycharm:
import sqlite3
However, this error shows up:
Traceback (most recent call last):
File "C:/Users/gusta/PycharmProjects/SiteCompilado/Compilador.py", line 8, in <module>
import sqlite3
File "C:\Users\gusta\anaconda3\lib\sqlite3\__init__.py", line 23, in <module>
from sqlite3.dbapi2 import *
File "C:\Users\gusta\anaconda3\lib\sqlite3\dbapi2.py", line 27, in <module>
from _sqlite3 import *
ImportError: DLL load failed: Não foi possível encontrar o módulo especificado.
I've tried to pip install sqlite3
but I get the following message on the terminal:
ERROR: Could not find a version that satisfies the requirement sqlite3 (from versions: none)
ERROR: No matching distribution found for sqlite3
And when I go to File > Settings > Add (Available Packages) it can't seem to find sqlite3 library.
Found an answer to this question here,
Unable to import sqlite3 using Anaconda Python
Tried it once but it didn't seem to work, then I restarted the computer, tried again and now it's working.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.