安装时jupyter笔记本的R内核死机

用户

我刚刚在Windows10上安装了jupyter笔记本的R内核,在这个post中得到了与OP相同的错误。下面粘贴的是我单击“内核错误”按钮时显示的错误。在

Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\notebook\base\handlers.py", line 436, in wrapper
    result = yield gen.maybe_future(method(self, *args, **kwargs))
  File "C:\Python27\lib\site-packages\notebook\services\sessions\handlers.py", line 56, in post
    model = sm.create_session(path=path, kernel_name=kernel_name)
  File "C:\Python27\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 66, in create_session
    kernel_name=kernel_name)
  File "C:\Python27\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 84, in start_kernel
    **kwargs)
  File "C:\Python27\lib\site-packages\jupyter_client\multikernelmanager.py", line 109, in start_kernel
    km.start_kernel(**kwargs)
  File "C:\Python27\lib\site-packages\jupyter_client\manager.py", line 239, in start_kernel
    **kw)
  File "C:\Python27\lib\site-packages\jupyter_client\manager.py", line 186, in _launch_kernel
    return launch_kernel(kernel_cmd, **kw)
  File "C:\Python27\lib\site-packages\jupyter_client\launcher.py", line 108, in launch_kernel
    proc = Popen(cmd, **kwargs)
  File "C:\Python27\lib\subprocess.py", line 672, in __init__
    errread, errwrite)
  File "C:\Python27\lib\subprocess.py", line 882, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

我试过很多方法,但我不确定我是否会让事情变得更糟。在

-我已经将C:\Program Files\R\R-3.2.2\bin添加到我的系统路径中,这样R就可以在命令行上运行了。我还尝试了将C:\Program Files\R\R-3.2.2\bin和{}添加到系统路径和用户路径的所有组合。在新笔记本下拉菜单下的笔记本用户界面中,我现在看到了两个R选项,我似乎无法摆脱它。在

-我尝试在RStudio中同时运行> IRkernel::installspec()和{}。从那以后,我删除了%APPDATA%\jupyter\kernels中的.json内核文件,因为我试图删除笔记本中看到的R重复。在

-我尝试在C:\Users\[username]\.ipython\kernels\R_kernel中添加一个kernel.json文件,其中包含内容

^{pr2}$

但这些都没有奏效。感谢任何帮助。Python2在我的笔记本上运行得很好。在


已被浏览了2597次
更新日期: 2020-10-22 22:38:05
0 个回答

目前没有回答

最新Python问答

推荐Python问答