尝试在Python3.5上运行jupyter (ipython3),我使用以下方式进行安装
sudo pip3 install jupyter
然而,当我尝试启动jupyter笔记本时,我收到了错误提示,说缺少模块_sqlite3和pysqlite2。我尝试使用pip3安装它们,但对于pysqlite2似乎没有可用版本。对于sqlite3,我收到以下错误提示:
RuntimeError: Package 'sqlite3' must not be downloaded from pypi
Traceback (most recent call last): File "/usr/local/lib/python3.5/site-packages/notebook/services/sessions/sessionmanager.py", line 10, in <module>
import sqlite3 File "/usr/local/lib/python3.5/sqlite3/__init__.py", line 23, in <module>
from sqlite3.dbapi2 import * File "/usr/local/lib/python3.5/sqlite3/dbapi2.py", line 27, in <module>
from _sqlite3 import * ImportError: 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 7, in <module>
from notebook.notebookapp import main
File "/usr/local/lib/python3.5/site-packages/notebook/notebookapp.py", line 79, in <module>
from .services.sessions.sessionmanager import SessionManager
File "/usr/local/lib/python3.5/site-packages/notebook/services/sessions/sessionmanager.py", line 13, in <module>
from pysqlite2 import dbapi2 as sqlite3
ImportError: No module named 'pysqlite2'
有什么想法吗?