安装i后无法在ubuntu 18.04.3上启动jupyter笔记本

2024-06-01 04:18:51 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用的是python3,我安装了jupyter笔记本运行: $ sudo apt install jupyter-notebook

现在开始时,当我键入“jupyter notebook”时,出现以下错误:

Traceback (most recent call last):
  File "/usr/bin/jupyter-notebook", line 11, in <module>
    load_entry_point('notebook==5.2.2', 'console_scripts', 'jupyter-notebook')()
  File "/home/helias/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/helias/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
    return ep.load()
  File "/home/helias/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2443, in load
    return self.resolve()
  File "/home/helias/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2449, in resolve
    module = import(self.module_name, fromlist=['name'], level=0)
  File "/usr/lib/python3/dist-packages/notebook/notebookapp.py", line 43, in <module>
    ioloop.install()
  File "/usr/lib/python3/dist-packages/zmq/eventloop/ioloop.py", line 210, in install
    assert (not ioloop.IOLoop.initialized()) or \
AttributeError: type object 'IOLoop' has no attribute 'initialized'

Tags: inpyhomelibpackageslocallineload