baidu_37147043
月下小生
2018-05-22 07:43

多次安装anaconda后Jupyter启动出现问题

5
  • jupyter
  • anaconda

启动jupyter后anaconda报错,报错信息如下:
[I 15:34:21.738 NotebookApp] The port 8888 is already in use, trying another port.
[I 15:34:21.786 NotebookApp] JupyterLab beta preview extension loaded from C:\Users\10034\Anaconda3\lib\site-packages\jupyterlab
[I 15:34:21.786 NotebookApp] JupyterLab application directory is C:\Users\10034\Anaconda3\share\jupyter\lab
[W 15:34:21.793 NotebookApp] Error loading server extension jupyterlab
Traceback (most recent call last):
File "C:\Users\10034\Anaconda3\lib\site-packages\jupyterlab\commands.py", line 321, in init
self._run(['node', 'node-version-check.js'], cwd=HERE, quiet=True)
File "C:\Users\10034\Anaconda3\lib\site-packages\jupyterlab\commands.py", line 1165, in run
proc = Process(cmd, **kwargs)
File "C:\Users\10034\Anaconda3\lib\site-packages\jupyterlab\process.py", line 73, in __init
_
self.proc = self._create_process(cwd=cwd, env=env)
File "C:\Users\10034\Anaconda3\lib\site-packages\jupyterlab\process.py", line 131, in _create_process
cmd[0] = which(cmd[0], kwargs.get('env'))
File "C:\Users\10034\Anaconda3\lib\site-packages\jupyterlab\jlpmapp.py", line 59, in which
raise ValueError(msg)
ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\10034\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 1454, in init_server_extensions
func(self)
File "C:\Users\10034\Anaconda3\lib\site-packages\jupyterlab\extension.py", line 111, in load_jupyter_server_extension
info = get_app_info(app_dir)
File "C:\Users\10034\Anaconda3\lib\site-packages\jupyterlab\commands.py", line 244, in get_app_info
handler = AppHandler(app_dir, logger)
File "C:\Users\10034\Anaconda3\lib\site-packages\jupyterlab\commands.py", line 324, in __init
_
raise ValueError(msg)
ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.
[I 15:34:21.975 NotebookApp] Serving notebooks from local directory: C:\Users\10034
[I 15:34:21.975 NotebookApp] 0 active kernels
[I 15:34:21.976 NotebookApp] The Jupyter Notebook is running at:
[I 15:34:21.976 NotebookApp] http://localhost:8889/?token=292dce07942e7e31c953a749027b2d327e20ad449cef8ccd
[I 15:34:21.976 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 15:34:21.977 NotebookApp]

Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8889/?token=292dce07942e7e31c953a749027b2d327e20ad449cef8ccd
[I 15:34:23.630 NotebookApp] Accepting one-time-token-authenticated connection from ::1

我猜应该是我反复安装anaconda导致的问题,请问有大佬帮忙解决吗?

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答