讨论区 老师答疑区 主题详情
松鼠学堂
置顶 精华 老师参与 关于jupyter的使用问题
课程

所有回复(4)

图片
匿名用户

> 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


请问jupyter的packages的内容在哪里可以看到,谢谢。

有很多同学反映在R里面安装和配置jupyter时,遇到问题,这里给出问题解决/排查办法:

  1. 首先要使用jupyter notebook,你要确保电脑上已经安装了它,jupyter是Python的一个编程环境,建议大家安装anaconda,具体可以看我的《Python数据科学入门》课程,里面有讲安装过程。你要安装我的课程里面提到的Anaconda3-4.4.0-Windows-x86_64

  2. 确保使用的R版本为R3.4.3,jupyter是个开源软件,相应的R包也是开源的,版本不同可能会存在兼容性问题。

  3. 如果你安装了正确的anaconda和R版本,仍然出问题,请把具体问题详细情况放在此贴下面。

回复

最近活动:
创建时间:
浏览次数:1346
关注人数:1