jupyter notebook_启动出错_ValueError: Please install nodejs 5+ and npm before continuing installation.

2 篇文章 0 订阅
2 篇文章 0 订阅

错误描述:

在启动jupyter notebook的时候虽然能进入Home,但是后台还是报错,如下:

[W 11:03:21.011 NotebookApp] Error loading server extension jupyterlab
    Traceback (most recent call last):
      File "E:\Anaconda3\lib\site-packages\jupyterlab\commands.py", line 321, in
 __init__
        self._run(['node', 'node-version-check.js'], cwd=HERE, quiet=True)
      File "E:\Anaconda3\lib\site-packages\jupyterlab\commands.py", line 1165, i
n _run
        proc = Process(cmd, **kwargs)
      File "E:\Anaconda3\lib\site-packages\jupyterlab\process.py", line 73, in _
_init__
        self.proc = self._create_process(cwd=cwd, env=env)
      File "E:\Anaconda3\lib\site-packages\jupyterlab\process.py", line 131, in
_create_process
        cmd[0] = which(cmd[0], kwargs.get('env'))
      File "E:\Anaconda3\lib\site-packages\jupyterlab\jlpmapp.py", line 59, in w
hich
        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 "E:\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 1454,
in init_server_extensions
        func(self)
      File "E:\Anaconda3\lib\site-packages\jupyterlab\extension.py", line 111, i
n load_jupyter_server_extension
        info = get_app_info(app_dir)
      File "E:\Anaconda3\lib\site-packages\jupyterlab\commands.py", line 244, in
 get_app_info
        handler = _AppHandler(app_dir, logger)
      File "E:\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 11:03:21.336 NotebookApp] Serving notebooks from local directory: C:\Users\Ad
ministrator\Desktop\shuju
[I 11:03:21.338 NotebookApp] 0 active kernels
[I 11:03:21.339 NotebookApp] The Jupyter Notebook is running at:
[I 11:03:21.340 NotebookApp] http://localhost:8888/?token=14172d7abed02b6a0b816a
51fa29f6b44929d2f96b8a1b7f
[I 11:03:21.342 NotebookApp] Use Control-C to stop this server and shut down all
 kernels (twice to skip confirmation).
[C 11:03:21.350 NotebookApp]

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8888/?token=14172d7abed02b6a0b816a51fa29f6b44929d2f96b8
a1b7f
[I 11:03:21.581 NotebookApp] Accepting one-time-token-authenticated connection f
rom ::1
[I 11:15:21.364 NotebookApp] Interrupted...
[I 11:15:21.366 NotebookApp] Shutting down 0 kernels

解决方案:

因为我的电脑上安装了Anaconda,所以我打开Anacoda后

等待系统安装,完成后在cmd命令行中再次输入jupyter notebook,问题解决

 

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值