必须安装 jupyter-client,但“jupyter kernelspec --version"以代码 127 退出 [英] jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127

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

问题描述

我已经在我的 ubuntu 16.04 机器上安装了 Jupyter notebook.在 jupyter notebook 中,默认安装了 python.现在我想使用 jupyter notebook 中的 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 run IRkernel::installspec() command it shows below error:

必须安装 jupyter-client 但jupyter kernelspec --version"退出,代码为 127

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

我现在很困惑为什么会出现这个错误.

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 退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆