ImportError: DLL load failed while importing _sqlite3: The specified module could not be found

foreword

I encountered the above problem while learning Django.

Need to explain the anaconda installation for background python.

View conclusion

After reviewing the relevant information, it can be concluded that:

Python has this module built in, but anaconda doesn't

The solution is to sqlite3.dllplace a file named DDLs in the directory:

D:\anaconda\DLLs

These solutions were derived.

solution

plan A:

D:\anaconda\Library\binI found this file in the directory and copied it to the above directory, and the program can start normally.

plan B:

Download one. URL: https://www.sqlite.org/download.html After decompression, copy it to the above directory, and the program can start normally.

Guess you like

Origin blog.csdn.net/sayWhat_sayHello/article/details/114464801