本文主要是介绍jupyter notebook_启动出错_ValueError: Please install nodejs 5+ and npm before continuing installation.,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
错误描述:
在启动jupyter notebook的时候虽然能进入Home,但是后台还是报错,如下:
[W 11:03:21.011 NotebookApp] Error loading server extension jupyterlabTraceback (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 _runproc = 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_processcmd[0] = which(cmd[0], kwargs.get('env'))File "E:\Anaconda3\lib\site-packages\jupyterlab\jlpmapp.py", line 59, in w
hichraise 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_extensionsfunc(self)File "E:\Anaconda3\lib\site-packages\jupyterlab\extension.py", line 111, i
n load_jupyter_server_extensioninfo = get_app_info(app_dir)File "E:\Anaconda3\lib\site-packages\jupyterlab\commands.py", line 244, inget_app_infohandler = _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 allkernels (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,问题解决
这篇关于jupyter notebook_启动出错_ValueError: Please install nodejs 5+ and npm before continuing installation.的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!