3

当我尝试通过 jupyter notebook shell 打开 r 文件时,内核无法启动并显示:

The kernel has died, and the automatic restart has failed. 
It is possible the kernel cannot be restarted. 
If you are not able to restart the kernel, you will still be able to save the notebook,
 but running code will no longer work until the notebook is reopened.

虽然终端显示:

*** caught segfault ***
address 0x18, cause 'memory not mapped'

Traceback:
 1: dyn.load(file, DLLpath = DLLpath, ...)
 2: library.dynam(lib, package, package.lib)
 3: loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
 4: namespaceImport(ns, loadNamespace(i, c(lib.loc, .libPaths()),     versionCheck = vI[[i]]), from = package)
 5: loadNamespace(name)
 6: doTryCatch(return(expr), name, parentenv, handler)
 7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
 8: tryCatchList(expr, classes, parentenv, handlers)
 9: tryCatch(loadNamespace(name), error = function(e) stop(e))
10: getNamespace(ns)
11: asNamespace(ns)
12: getExportedValue(pkg, name)
13: IRkernel::main
aborting ...

我在 MAC OS 上使用 anaconda3,并使用 conda -install -cr r-essentials 安装 r 包。经过几次尝试重新安装ipython,它仍然无法正常工作!提前感谢您的关注和帮助。

4

1 回答 1

0

启动 R 然后输入

install.packages("rzmq", dependencies=TRUE, repos=' http://cran.rstudio.com/ ')

于 2016-06-28T02:49:24.547 回答