> IRkernel::installspec(user = FALSE)
Error in IRkernel::installspec(user = FALSE) :
jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127.
此外: Warning message:
In system2("jupyter", c("kernelspec", "--version"), FALSE, FALSE) :
调用命令时发生了错误
请问老师这个是什么情况
Making 'packages.html' ...Error in flush.console() : 不适用于非函数
Making 'packages.html' ...Error in flush.console() : 不适用于非函数
停止执行
In R CMD INSTALL
Installation failed: Command failed (1)
> IRkernel::installspec(user = FALSE)
Error in IRkernel::installspec(user = FALSE) :
jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127.
> devtools::install_github('IRkernel/IRkernel')
Installation failed: Timeout was reached: Send failure: Connection was reset
有很多同学反映在R里面安装和配置jupyter时,遇到问题,这里给出问题解决/排查办法:
首先要使用jupyter notebook,你要确保电脑上已经安装了它,jupyter是Python的一个编程环境,建议大家安装anaconda,具体可以看我的《Python数据科学入门》课程,里面有讲安装过程。你要安装我的课程里面提到的Anaconda3-4.4.0-Windows-x86_64
确保使用的R版本为R3.4.3,jupyter是个开源软件,相应的R包也是开源的,版本不同可能会存在兼容性问题。
如果你安装了正确的anaconda和R版本,仍然出问题,请把具体问题详细情况放在此贴下面。