jupyter notebook启动异常

在终端输入

jupyter notebook

会报如下异常

The Jupyter HTML Notebook.

 

这将启动一个基于tornado的HTML笔记本服务器,它提供一个html5/

javascript笔记本客户端。

 

Traceback (most recent call last):

  File "/usr/local/bin/jupyter-notebook", line 10, in <module>

    sys.exit(main())

  File "/usr/local/lib/python2.7/site-packages/jupyter_core/application.py", line 266, in launch_instance

    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)

  File "/usr/local/lib/python2.7/site-packages/traitlets/config/application.py", line 657, in launch_instance

    app.initialize(argv)

  File "</usr/local/lib/python2.7/site-packages/decorator.pyc:decorator-gen-7>", line 2, in initialize

  File "/usr/local/lib/python2.7/site-packages/traitlets/config/application.py", line 89, in catch_config_error

    app.print_help()

  File "/usr/local/lib/python2.7/site-packages/traitlets/config/application.py", line 385, in print_help

    self.print_subcommands()

  File "/usr/local/lib/python2.7/site-packages/traitlets/config/application.py", line 377, in print_subcommands

    print(os.linesep.join(lines))

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 4: ordinal not in range(128)

在Github上找到了答案

在终端运行: LANG=zn jupyter notebook

prefect!!!!!!!!!!!!!!

posted @ 2019-06-06 17:19 tryFighting 阅读(...) 评论(...) 编辑 收藏