如何修复Jupyter Notebook中的内核错误(PermissionError:[WinError 5]访问被拒绝)

时间:2019-07-23 07:08:21

标签: python-3.x jupyter-notebook

PermissionError:[WinError 5]访问被拒绝。由于此错误,Jupyter Notebook无法运行任何代码。没有检查是否可以运行其他任何python,我对python还是很陌生。

我试图以管理员身份运行jupyter-notebook,但无济于事。我多次卸载并重新安装,没有帮助。试图改变路径,但不知道要做什么

Traceback (most recent call last):
           Traceback (most recent call last):
  File "C:\anaconda3\lib\site-packages\tornado\web.py", line 1699, in_execute
    result = await result
  File "C:\anaconda3\lib\site-packages\tornado\gen.py", line 736, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "C:\anaconda3\lib\sitepackages\notebook\services\sessions\handlers.py", line 73, in post
    type=mtype))
  File "C:\anaconda3\lib\site-packages\tornado\gen.py", line 729, in run
    value = future.result()
  File "C:\anaconda3\lib\site-packages\tornado\gen.py", line 736, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "C:\anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 79, in create_session
    kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
  File "C:\anaconda3\lib\site-packages\tornado\gen.py", line 729, in run
    value = future.result()
  File "C:\anaconda3\lib\site-packages\tornado\gen.py", line 736, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "C:\anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 92, in start_kernel_for_session
    self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
  File "C:\anaconda3\lib\site-packages\tornado\gen.py", line 729, in run
    value = future.result()
  File "C:\anaconda3\lib\site-packages\tornado\gen.py", line 209, in wrapper
    yielded = next(result)
  File "C:\anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 160, in start_kernel
    super(MappingKernelManager, self).start_kernel(**kwargs)
  File "C:\anaconda3\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel
    km.start_kernel(**kwargs)
  File "C:\anaconda3\lib\site-packages\jupyter_client\manager.py", line 259, in start_kernel
    **kw)
  File "C:\anaconda3\lib\site-packages\jupyter_client\manager.py", line 204, in _launch_kernel
    return launch_kernel(kernel_cmd, **kw)
  File "C:\anaconda3\lib\site-packages\jupyter_client\launcher.py", line 138, in launch_kernel
    proc = Popen(cmd, **kwargs)
  File "C:\anaconda3\lib\subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "C:\anaconda3\lib\subprocess.py", line 1178, in _execute_child
    startupinfo)
PermissionError: [WinError 5] Access is denied

0 个答案:

没有答案