【发布时间】:2020-08-17 12:44:06
【问题描述】:
我想在 Kaggle 内核中同时使用 R 和 Python 语言。因此,在运行时
!pip install rpy2
在 Kaggle Notebook 中出现以下错误
Error: rpy2 in API mode cannot be built without R in the PATH or R_HOME defined. Correct this or force ABI mode-only by defining the environment variable RPY2_CFFI_MODE=ABI
我为 R 中的 Python 用户找到了 solution,但尚未提供在 Kaggle 内核中的 Python 中调用 R 的解决方案。
【问题讨论】: