本文介绍了必须安装jupyter-client,但是退出了"jupyter kernelspec --version",代码为127的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Ubuntu 16.04机器上安装了Jupyter笔记本电脑.在jupyter笔记本中,默认情况下安装了python.现在我想从jupyter笔记本中使用R.

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.

为此,我遵循了 IRkernel安装链接,并运行以下命令:

To do so I followed IRkernel installation link and run below commands:

install.packages('devtools')

devtools::install_github('IRkernel/IRkernel')

但是当我跑步时IRkernel::installspec()命令,它显示以下错误:

But when I runIRkernel::installspec() command it shows below error:

我现在很困惑为什么会发生此错误.

I am now confused why this error occurs.

推荐答案

从RStudio运行此命令将显示此错误.当您从命令行/终端运行此命令时,一切都会好起来.

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

因此,只需在命令行中输入R.

So just type R from your command line.

然后运行以下命令:

install.packages('devtools')

devtools::install_github('IRkernel/IRkernel')
IRkernel::installspec()

这篇关于必须安装jupyter-client,但是退出了"jupyter kernelspec --version",代码为127的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 18:23