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

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

    For mac users:

    I came across the same problem. You should call IRkernel::installspec(user = FALSE) in the terminal through R. I solved it this way, and I bet you could do the same:

    1. Call R.home() in R console
    2. You shall get [1] "/Library/Frameworks/R.framework/Resources"
    3. Add /bin/R to path nlike this: /Library/Frameworks/R.framework/Resources/bin/R
    4. In terminal, paste this path /Library/Frameworks/R.framework/Resources/bin/Rand enter.
    5. Now you are using R in terminal. CallIRkernel::installspec(user = FALSE) And it shall be solved then.

提交回复
热议问题