[Python] Cannot run Jupyter Notebook on Ubuntu 22.04

Discussão em 'Python' iniciado por Stack, Junho 17, 2025.

  1. Stack

    Stack Membro Participativo

    I have Ubuntu 22.04 with python 3.10. When I try to open jupyter notebook from terminal this error occurrs:

    Traceback (most recent call last):
    File "/home/anaconda3/lib/python3.10/site-packages/notebook/services/sessions/sessionmanager.py", line 9, in <module>
    import sqlite3
    File "/home/anaconda3/lib/python3.10/sqlite3/__init__.py", line 57, in <module>
    from sqlite3.dbapi2 import *
    File "/home/anaconda3/lib/python3.10/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
    ImportError: /home/anaconda3/lib/python3.10/lib-dynload/_sqlite3.cpython-310-x86_64-linux-gnu.so: undefined symbol: sqlite3_trace_v2

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File "/home/anaconda3/bin/jupyter-notebook", line 5, in <module>
    from notebook.notebookapp import main
    File "/home/anaconda3/lib/python3.10/site-packages/notebook/notebookapp.py", line 83, in <module>
    from .services.sessions.sessionmanager import SessionManager
    File "/home/anaconda3/lib/python3.10/site-packages/notebook/services/sessions/sessionmanager.py", line 12, in <module>
    from pysqlite2 import dbapi2 as sqlite3
    ModuleNotFoundError: No module named 'pysqlite2'


    When I checked sqlite3, it is intalled in home/anaconda3/lib/python3.10/sqlite3/ and it contains dbapi2.py. Should I somehow reorganize the folders? PS: When I tried pip install pysqlite2 another error occurred: ERROR: Could not find a version that satisfies the requirement pysqlite2 (from versions: none) ERROR: No matching distribution found for pysqlite2

    Continue reading...

Compartilhe esta Página