Unable to import sqlite3 using Anaconda Python

前端 未结 5 1019
一整个雨季
一整个雨季 2020-11-30 08:16

I am trying to do the following in Python 3.7.1 on Windows

import sqlite3

but I get the following error message

Traceback (         


        
5条回答
  •  不知归路
    2020-11-30 09:16

    Locate the sqlite3.dll file. In my case it was in following folder

    C:\Users\Admin\anaconda3\Library\bin 
    

    where C:\Users\Admin\anaconda3 is the folder where Anaconda was installed

    Add this to PATH in environment variables, and it should work then.

提交回复
热议问题