jupyter notebook启动内核失败

一打开jupyter notebook出现了这个错误:

Unhandled error

Traceback (most recent call last):
  File "D:\Python\Anaconda_3.8\lib\site-packages\tornado\web.py", line 1704, in _execute
    result = await result
  File "D:\Python\Anaconda_3.8\lib\site-packages\tornado\gen.py", line 769, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "D:\Python\Anaconda_3.8\lib\site-packages\notebook\services\sessions\handlers.py", line 69, in post
    model = yield maybe_future(
  File "D:\Python\Anaconda_3.8\lib\site-packages\tornado\gen.py", line 762, in run
    value = future.result()
  File "D:\Python\Anaconda_3.8\lib\site-packages\tornado\gen.py", line 769, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "D:\Python\Anaconda_3.8\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 98, in create_session
    kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
  File "D:\Python\Anaconda_3.8\lib\site-packages\tornado\gen.py", line 762, in run
    value = future.result()
  File "D:\Python\Anaconda_3.8\lib\site-packages\tornado\gen.py", line 769, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "D:\Python\Anaconda_3.8\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 110, in start_kernel_for_session
    kernel_id = yield maybe_future(
  File "D:\Python\Anaconda_3.8\lib\site-packages\tornado\gen.py", line 762, in run
    value = future.result()
  File "D:\Python\Anaconda_3.8\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 176, in start_kernel
    kernel_id = await maybe_future(self.pinned_superclass.start_kernel(self, **kwargs))
  File "D:\Python\Anaconda_3.8\lib\site-packages\jupyter_client\multikernelmanager.py", line 186, in start_kernel
    km.start_kernel(**kwargs)
  File "D:\Python\Anaconda_3.8\lib\site-packages\jupyter_client\manager.py", line 341, in start_kernel
    self.kernel = self._launch_kernel(kernel_cmd, **kw)
  File "D:\Python\Anaconda_3.8\lib\site-packages\jupyter_client\manager.py", line 249, in _launch_kernel
    return launch_kernel(kernel_cmd, **kw)
  File "D:\Python\Anaconda_3.8\lib\site-packages\jupyter_client\launcher.py", line 132, in launch_kernel
    proc = Popen(cmd, **kwargs)
  File "D:\Python\Anaconda_3.8\lib\subprocess.py", line 858, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "D:\Python\Anaconda_3.8\lib\subprocess.py", line 1311, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

解决方法:重新安装jupyter notebook,重新安装后可以成功启动。

1.打开anaconda prompt

 

2.卸载:conda uninstall jupyter notebook

3.安装:conda install jupyter notebook

 这样便可以正常使用jupyter notebook了。

 

  • 2
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值