无法在Jupyter Notebook中加载IRKernel [英] Unable to load IRKernel in Jupyter notebook

查看:221
本文介绍了无法在Jupyter Notebook中加载IRKernel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对这个论坛还很陌生,所以很抱歉如果这个问题已经得到回答.我环顾四周,尽管我发现有些问题类似,但在以前的任何文章中都找不到解决我问题的方法.所以-来...

I'm pretty new to the forum, so I'm sorry if this question has already been answered. I looked around, and although I saw that some had similar issues, I couldn't find the solution to my problem on any previous posts. So - here goes...

我正在运行Mac OS X 10.11.5,Jupyter笔记本电脑版本4.2.1,R版本3.2.2

I'm running Mac OS X 10.11.5, Jupyter notebook version 4.2.1, R version 3.2.2

我使用以下命令为Jupyter Notebook安装了R内核-

I installed the R kernel for Jupyter notebook with the following command -

conda install -c r r-irkernel

现在,当我启动Jupyter笔记本电脑时,我看到"R"作为笔记本"下方右侧下拉菜单中的选项之一出现.但是,当我尝试创建R笔记本时,内核崩溃,并且在终端中出现以下错误:

Now, when I launch Jupyter notebook, I see 'R' appears as one of the options in the drop down menu on the right hand side under 'notebooks.' However, when I try to create an R notebook, the kernel crashes and I get the following error in terminal:

WARNING:root:kernel b42781ab-ebb1-45eb-8a54-d3801106fb94 restarted
Error: .onLoad failed in loadNamespace() for 'pbdZMQ', details:  
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Users/avislova/anaconda/lib/R/library/pbdZMQ/libs/pbdZMQ.so':
  dlopen(/Users/avislova/anaconda/lib/R/library/pbdZMQ/libs/pbdZMQ.so,     6): Library not loaded: @rpath/libzmq.5.dylib
  Referenced from: /Users/avislova/anaconda/lib/R/library/pbdZMQ/libs/pbdZMQ.so
  Reason: image not found
Execution halted
 [W 16:19:12.382 NotebookApp] KernelRestarter: restart failed
 [W 16:19:12.382 NotebookApp] Kernel b42781ab-ebb1-45eb-8a54-d3801106fb94 died, removing from map.
ERROR:root:kernel b42781ab-ebb1-45eb-8a54-d3801106fb94 restarted failed!
 [W 16:19:12.390 NotebookApp] Kernel deleted before session
 [W 16:19:12.390 NotebookApp] 410 DELETE /api/sessions/2236e334-e33a-483b-87f3-31c461d4903b (::1) 1.32ms referer=http://localhost:8888/notebooks/Untitled5.ipynb?kernel_name=ir

有什么想法我可以从这里去吗?

Any idea where I can go from here?

谢谢!

推荐答案

在Mac上更新"R"后,我遇到了类似的问题.

I faced similar issue after I updated 'R' on my mac.

以下步骤解决了我的问题

Below steps resolved my issue

install.packages(c('pbdZMQ', 'repr', 'devtools'))  
devtools::install_github('IRkernel/IRdisplay')
devtools::install_github('IRkernel/IRkernel')
IRkernel::installspec()  

有关详细信息,请参见 http://johnlaudun.org/20160521-irkernel-difficulties/

For details refer http://johnlaudun.org/20160521-irkernel-difficulties/

这篇关于无法在Jupyter Notebook中加载IRKernel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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