一开始安装步骤参照在jupyter中调用R - MingleX - 博客园,一直没有问题直到最后一步报错:
Error in IRkernel::installspec(user = FALSE) :
jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127.
In addition: Warning message:
In system2("jupyter", c("kernelspec", "--version"), FALSE, FALSE) :
error in running command
查了很多方法,没有一个成功的,最后是在IRkernel的官方安装说明(Installation · IRkernel)里找到,在Ubuntu环境下要先运行
sudo apt-get install libzmq3-dev libcurl4-openssl-dev libssl-dev jupyter-core jupyter-client
然后再进入R运行
IRkernel::installspec(user=FALSE)
最后成功~~