jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127

后端 未结 17 1974
再見小時候
再見小時候 2020-12-23 20:35

I have already installed Jupyter notebook in my ubuntu 16.04 machine. In jupyter notebook there is by default python installed. Now I want to use R from jupyter notebook.

17条回答
  •  忘掉有多难
    2020-12-23 21:13

    Here a way to overcome this problem. I have installed IRkernel with anaconda in my mac (I guess is the same on Linux). The below command also works in windows to be run on Anaconda shell and pressing y after a y/n prompt (you can also refer https://medium.com/@kyleake/how-to-install-r-in-jupyter-with-irkernel-in-3-steps-917519326e41)

    I typed:

    conda install -c r r-irkernel
    

    Then I started started R typing:

    R
    

    Finally, I have install the kernelspec to tell Jupyter about IRkernel, with the option user=FALSE for installation in the global environment:

    IRkernel::installspec(user=FALSE)
    

    Hope it helps!

提交回复
热议问题