我是论坛的新手,所以如果这个问题已经得到回答,我很抱歉。我环顾四周,虽然我看到有些人有类似的问题,但我在以前的任何帖子中都找不到解决问题的方法。所以——来了……
我正在运行 Mac OS X 10.11.5、Jupyter notebook 版本 4.2.1、R 版本 3.2.2
我使用以下命令为 Jupyter notebook 安装了 R 内核 -
conda install -c r r-irkernel
现在,当我启动 Jupyter 笔记本时,我看到“R”作为选项之一出现在“笔记本”下右侧的下拉菜单中。但是,当我尝试创建 R 笔记本时,内核崩溃并且在终端中出现以下错误:
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
知道我可以从这里去哪里吗?
谢谢!