关于 Raspberry Pi 3 B+ 上 jupyter-notebook 的一个问题

关于 Raspberry Pi 3 B+ 上 jupyter-notebook 的一个问题

在我的 RP3+B(运行 2019-07-10-raspbian-buster-full.img)上,jupyter-notebook 不起作用。它确实出现在 Chromium 中,但像这样简单的命令import time就会停滞。

错误信息如:

    [I 22:34:54.777 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 2, in <module>
    from .connect import *
  File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 13, in <module>
    from IPython.core.profiledir import ProfileDir
  File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 49, in <module>
    from .terminal.embed import embed
  File "/usr/lib/python3/dist-packages/IPython/terminal/embed.py", line 18, in <module>
    from IPython.terminal.interactiveshell import TerminalInteractiveShell
  File "/usr/lib/python3/dist-packages/IPython/terminal/interactiveshell.py", line 20, in     <module>
    from prompt_toolkit.shortcuts import create_prompt_application, create_eventloop,     create_prompt_layout, create_output
ImportError: cannot import name 'create_prompt_application' from 'prompt_toolkit.shortcuts' (/    usr/local/lib/python3.7/dist-packages/prompt_toolkit/shortcuts/__init__.py)
[W 22:34:57.810 NotebookApp] KernelRestarter: restart failed
[W 22:34:57.811 NotebookApp] Kernel 95b57c1c-52b5-4356-b5ee-deac4b22ca19 died, removing from map.

在 shell 中反复显示我启动了 jupyter-notebook。

关于如何解决这个问题您有什么想法吗?

相关内容