gpt4 book ai didi

r - ipython死内核,无法重新启动,我该怎么办?

转载 作者:行者123 更新时间:2023-12-04 11:00:28 25 4
gpt4 key购买 nike

当我尝试通过 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 操作系统上使用 anaconda3,并使用 conda -install -c r r-essentials 安装 r 包。多次尝试重装ipython,还是不行!在此先感谢您的关注和帮助。

最佳答案

启动R然后输入

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

关于r - ipython死内核,无法重新启动,我该怎么办?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36905507/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com