我在尝试在命令行中打开jupyter笔记本时收到错误:“ UnicodeDecodeError:'utf-8'编解码器无法解码位置214969上的字节0xb4:无效的起始字节”。而且,如果我尝试直接打开jupyter笔记本,则会收到错误消息:“ localhost当前无法处理此请求。HTTP错误500”。
请建议我如何解决此错误。
下面是cmd行内容:
Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Users\ADMIN>jupyter notebook
[I 12:28:04.484 NotebookApp] The port 8888 is already in use, trying another port.
[I 12:28:04.539 NotebookApp] Loading IPython parallel extension
[I 12:28:04.541 NotebookApp] Serving notebooks from local directory: C:\Users\ADMIN
[I 12:28:04.542 NotebookApp] The Jupyter Notebook is running at:
[I 12:28:04.542 NotebookApp] http://localhost:8889/?token=ebe213994ecad795337ee78b547c38ea7e5c0a9deb9619b5
[I 12:28:04.542 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Traceback (most recent call last):
File "c:\users\admin\appdata\local\programs\python\python36\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\admin\appdata\local\programs\python\python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python36\Scripts\jupyter-notebook.EXE\__main__.py", line 9, in <module>
File "c:\users\admin\appdata\local\programs\python\python36\lib\site-packages\jupyter_core\application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "c:\users\admin\appdata\local\programs\python\python36\lib\site-packages\traitlets\config\application.py", line 658, in launch_instance
app.start()
File "c:\users\admin\appdata\local\programs\python\python36\lib\site-packages\notebook\notebookapp.py", line 1781, in start
self.write_browser_open_file()
File "c:\users\admin\appdata\local\programs\python\python36\lib\site-packages\notebook\notebookapp.py", line 1700, in write_browser_open_file
self._write_browser_open_file(open_url, f)
File "c:\users\admin\appdata\local\programs\python\python36\lib\site-packages\notebook\notebookapp.py", line 1708, in _write_browser_open_file
template = jinja2_env.get_template('browser-open.html')
File "c:\users\admin\appdata\local\programs\python\python36\lib\site-packages\jinja2\environment.py", line 830, in get_template
return self._load_template(name, self.make_globals(globals))
File "c:\users\admin\appdata\local\programs\python\python36\lib\site-packages\jinja2\environment.py", line 804, in _load_template
template = self.loader.load(self, name, globals)
File "c:\users\admin\appdata\local\programs\python\python36\lib\site-packages\jinja2\loaders.py", line 113, in load
source, filename, uptodate = self.get_source(environment, name)
File "c:\users\admin\appdata\local\programs\python\python36\lib\site-packages\jinja2\loaders.py", line 175, in get_source
contents = f.read().decode(self.encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb4 in position 214969: invalid start byte