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

启动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导致的问题,请问有大佬帮忙解决吗?

你要么可能是安装版本不对,或者安装了多个版本python,在环境变量那里把你现在的使用的路径放到最上面去试试

应该是安装了多个python版本,我也是这种情况,可以把命令改一下,指定下python。

刚刚仔细阅读了报错信息,其中有一行“ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.”于是尝试安装nodejs,即“conda install nodejs”,安装完后顺手升级了一下anaconda的版本就o98k了。不过只是暂时不让系统报错了,具体什么原因导致的我也不清楚。

可以尝试先将python卸载,然后将anaconda所有文件卸载干净,再重新安装