[Seek Help] 启动jupyter notebook提示 No module named '_sqlite3怎么办?
Tofloor
poster avatar
薛亮 LeonX
deepin
2023-05-23 19:35
Author

root@LeonX-SE-PC:/home/LeonX-SE# jupyter notebook
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/notebook/services/sessions/sessionmanager.py", line 9, in
import sqlite3
File "/usr/local/lib/python3.11/sqlite3/init.py", line 57, in
from sqlite3.dbapi2 import *
File "/usr/local/lib/python3.11/sqlite3/dbapi2.py", line 27, in
from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/jupyter-notebook", line 5, in
from notebook.notebookapp import main
File "/usr/local/lib/python3.11/site-packages/notebook/notebookapp.py", line 83, in
from .services.sessions.sessionmanager import SessionManager
File "/usr/local/lib/python3.11/site-packages/notebook/services/sessions/sessionmanager.py", line 12, in
from pysqlite2 import dbapi2 as sqlite3
ModuleNotFoundError: No module named 'pysqlite2'
root@LeonX-SE-PC:/home/LeonX-SE#

请问怎么解决?如何才能打开jupyter notebook?

Reply Favorite View the author
All Replies
Ziggy
deepin
2023-05-23 20:07
#1

应用商店还是第三方来源的包?

Reply View the author
fuuko
deepin
2023-05-23 22:02
#2

你装一个sqlite3就行了啊confused

或者使用打包好的docker启动它也成,一般这玩意儿会搭配一个超级复杂的环境(比如AI的开发环境),很容易把系统搞坏shamed

Reply View the author
薛亮 LeonX
deepin
2023-05-24 02:46
#3

sqlite3装过了,怎么还提示一样的问题?我是用虚拟机装的deepin,有影响么?

Reply View the author
薛亮 LeonX
deepin
2023-05-24 02:47
#4
Ziggy

应用商店还是第三方来源的包?

官网上下载的安装包

Reply View the author
薛亮 LeonX
deepin
2023-05-24 03:03
#5
薛亮 LeonX

sqlite3装过了,怎么还提示一样的问题?我是用虚拟机装的deepin,有影响么?

leonx-se@leonx-se-PC:~$ sudo apt-get install sqlite3
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
sqlite3 已经是最新版 (3.27.2.4-1+dde)。
下列软件包是自动安装的并且现在不需要了:
deepin-pw-check imageworsener libde265-0 libheif1 liblqr-1-0 libmaxminddb0 libqtermwidget5-0 libsmi2ldbl
libspandsp2 libutempter0 libutf8proc2 libwireshark-data libwireshark11 libwiretap8 libwscodecs2 libwsutil9
libx265-165 qtermwidget5-data squashfs-tools x11-apps x11-session-utils xbitmaps xinit
使用'sudo apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

Reply View the author