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

后端 未结 17 1747
再見小時候
再見小時候 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:07

    I have solved with this:

    sudo ln -s /home/'my user name'/anaconda3/bin/jupyter /usr/bin/jupyter

    0 讨论(0)
  • 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!

    0 讨论(0)
  • 2020-12-23 21:14
    1. If Anaconda is installed and the Jupyter-Notebook with it (should be the standard install), open up the Anaconda prompt, not the Windows command prompt or the Anaconda Navigator
    2. Look up the executable of R (not Rgui or Rstudio), it should be somewhere like C:\Program Files\R\R-3.5.1\bin and remember the path typing cd C:\Program Files\R\R-3.5.1\bin and start R by typing R
    3. typing IRkernel::installspec()
    4. Now you can start an R kernel within Jupyter-Notebook
    0 讨论(0)
  • 2020-12-23 21:14

    I had the same error while trying to install my environment as kernel in Jupyter. First I had created a new environment, installed R, IRkernel and devtools from within conda prompt, then runned R typing R from the prompt and typing

    IRkernel::installspec(name = 'myenvname', displayname = 'myenvname')
    

    I had the same error. I solved simply in this way:

    conda install -c anaconda jupyter_client
    

    And then retyping the previous code it just worked.

    0 讨论(0)
  • 2020-12-23 21:15

    Running this command from RStudio will show this error. When you run this command from command line/ terminal then everything will be fine.

    So just type R from your command line.

    Then Run below commands:

    install.packages('devtools')
    
    devtools::install_github('IRkernel/IRkernel')
    

    enter image description here

    IRkernel::installspec()
    
    0 讨论(0)
提交回复
热议问题