繁体   English   中英

安装后无法在ubuntu 18.04.3上启动Jupyter Notebook

[英]Can't start jupyter notebook on ubuntu 18.04.3 after installed it

我正在使用python3并安装了运行的jupyter-notebook: $ 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'

我使用pip解决了此安装/更新库pyzmq的问题

pip3 install pyzmq

注:使用只是pip ,如果你正在使用Python2。

如果您使用的是conda ,则可以运行:

conda install -c anaconda pyzmq

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM