gpt4 book ai didi

anaconda - Jupyter 笔记本中的应用程序启动错误

转载 作者:行者123 更新时间:2023-12-05 02:16:22 26 4
gpt4 key购买 nike

每当我启动 Jupyter notebook 时,我都会收到应用程序启动错误。我尝试按照错误最后一行中的说明进行操作,但错误永远不会消失。会不会是工作目录的问题?

当我使用 %pwd 检查 Jupyter notebook 中的工作目录时,我得到 C:\Users\mayerk

但是,我的 Anaconda 工作目录是 C:\Users\mayerk\AppData\Local\Continuum\anaconda3

这是我每次启动 Jupyter Notebook 时 Anaconda Navigator 返回的错误:

[I 09:30:37.269 NotebookApp] The port 8888 is already in use, trying another port.

[I 09:30:37.269 NotebookApp] The port 8889 is already in use, trying another port.

[I 09:30:37.270 NotebookApp] The port 8890 is already in use, trying another port.

[I 09:30:37.324 NotebookApp] JupyterLab beta preview extension loaded from C:\Users\mayerk\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyterlab

[I 09:30:37.324 NotebookApp] JupyterLab application directory is C:\Users\mayerk\AppData\Local\Continuum\anaconda3\share\jupyter\lab

[W 09:30:37.334 NotebookApp] Error loading server extension jupyterlab
Traceback (most recent call last):

File "C:\Users\mayerk\AppData\Local\Continuum\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\mayerk\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyterlab\commands.py", line 1165, in _run
proc = Process(cmd, **kwargs)

File "C:\Users\mayerk\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyterlab\process.py", line 73, in __init__
self.proc = self._create_process(cwd=cwd, env=env)

File "C:\Users\mayerk\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyterlab\process.py", line 131, in _create_process
cmd[0] = which(cmd[0], kwargs.get('env'))

File "C:\Users\mayerk\AppData\Local\Continuum\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\mayerk\AppData\Local\Continuum\anaconda3\lib\site-packages\notebook\notebookapp.py", line 1454, in init_server_extensions
func(self)

File "C:\Users\mayerk\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyterlab\extension.py", line 111, in load_jupyter_server_extension
info = get_app_info(app_dir)

File "C:\Users\mayerk\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyterlab\commands.py", line 244, in get_app_info
handler = _AppHandler(app_dir, logger)

File "C:\Users\mayerk\AppData\Local\Continuum\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 09:30:37.410 NotebookApp] Serving notebooks from local directory: C:\Users\mayerk
[I 09:30:37.410 NotebookApp] 0 active kernels
[I 09:30:37.411 NotebookApp] The Jupyter Notebook is running at:
[I 09:30:37.411 NotebookApp] http://localhost:8891/?token=fe440f0ea50e716458013d568b6f94f4a1c498959e39e490
[I 09:30:37.411 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 09:30:37.420 NotebookApp]

Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8891/?token=fe440f0ea50e716458013d568b6f94f4a1c498959e39e490
[I 09:30:37.557 NotebookApp] Accepting one-time-token-authenticated connection from ::1

最佳答案

ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.

尝试:conda install -y nodejs

关于anaconda - Jupyter 笔记本中的应用程序启动错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50006772/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com