Ubuntu16.04-安装Jupyter笔记本后,它无法启动并给出错误

时间:2020-09-03 15:18:40

标签: python installation jupyter ubuntu-16.04

我搜索了很多,但找不到答案! 我正在尝试像平常一样安装jupyter。但是三天没用了!

使用以下命令安装它时:

spark@spark-VirtualBox:~$  sudo apt install python3-pip
spark@spark-VirtualBox:~$  pip3 install jupyter

我的jupyter笔记本运行:

spark@spark-VirtualBox:~$ jupyter notebook

我收到以下错误消息:

    Traceback (most recent call last):
  File "/home/spark/.local/bin/jupyter-notebook", line 7, in <module>
    from notebook.notebookapp import main
  File "/home/spark/.local/lib/python3.5/site-packages/notebook/__init__.py", line 27, in <module>
    from .nbextensions import install_nbextension
  File "/home/spark/.local/lib/python3.5/site-packages/notebook/nbextensions.py", line 26, in <module>
    from .config_manager import BaseJSONConfigManager
  File "/home/spark/.local/lib/python3.5/site-packages/notebook/config_manager.py", line 14, in <module>
    from traitlets.config import LoggingConfigurable
  File "/home/spark/.local/lib/python3.5/site-packages/traitlets/__init__.py", line 3, in <module>
    from . import traitlets
  File "/home/spark/.local/lib/python3.5/site-packages/traitlets/traitlets.py", line 1779
    return repr(f'{value.__module__}.{value.__name__}')
                                                     ^
SyntaxError: invalid syntax

请你帮我一下! 预先非常感谢。

0 个答案:

没有答案