Windows10 open jupyter notebook error ModuleNotFoundError: No module named 'pysqlite2'

Error message

Traceback (most recent call last):
  File "C:\Users\ghost\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\ghost\anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\YayingLuo\Desktop\deeplearning\notebooks\dldiy\Scripts\jupyter-notebook.EXE\__main__.py", line 5, in <module>
  File "c:\users\yayingluo\desktop\deeplearning\notebooks\dldiy\lib\site-packages\notebook\notebookapp.py", line 83, in <module>
    from .services.sessions.sessionmanager import SessionManager
  File "c:\users\yayingluo\desktop\deeplearning\notebooks\dldiy\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 12, in <module>
    from pysqlite2 import dbapi2 as sqlite3
ModuleNotFoundError: No module named 'pysqlite2'
(dldiy)

Solution: Download the corresponding file
on the sqlite3 official website
and select the win64-x64 version,
extract it to the anaconda3\DLLs directory,
run jupyter notebook again on the command line, and it succeeds

Guess you like

Origin blog.csdn.net/weixin_43846562/article/details/115428893