%load_ext rpy2.ipython 导致“内核似乎已经死了.它将自动重新启动" [英] %load_ext rpy2.ipython causes "The kernel appears to have died. It will restart automatically"

查看:119
本文介绍了%load_ext rpy2.ipython 导致“内核似乎已经死了.它将自动重新启动"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 jupyter 笔记本中

In a jupyter notebook

%load_ext rpy2.ipython

导致内核崩溃.

"内核似乎已经死了.它将自动重新启动."

"The kernel appears to have died. It will restart automatically."

带有以下控制台消息

Error in `::`(base, quote) : could not find function "::"
Error in `::`(base, quote) : could not find function "::"
Error in `:::`(compiler, checkCompilerOptions) : 
  could not find function ":::"
Fatal error: unable to initialize the JIT

有任何线索吗?我试过清理我的 R 安装并从头开始.每次都出现同样的错误.

Any clues on this? I've tried cleaning out my R installation and starting from scratch. Same error, every time.

Mac 操作系统 10.14.6蟒蛇 3.8R 版本 4.1.0 (2021-05-18)rpy2-3.4.4jupyter-1.0.0

Mac OS 10.14.6 python 3.8 R version 4.1.0 (2021-05-18) rpy2-3.4.4 jupyter-1.0.0

推荐答案

谢谢@krassowski 我的python38 安装搞砸了.卸载python和pip安装的所有包,然后用python39重新启动.修复了问题.

Thanks @krassowski my python38 installation was messed up. Uninstalled python and all packages installed by pip and started again with python39. Fixed the problem.

这篇关于%load_ext rpy2.ipython 导致“内核似乎已经死了.它将自动重新启动"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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