gpt4 book ai didi

rpy2 - %load_ext rpy2.ipython 找不到图像错误

转载 作者:行者123 更新时间:2023-12-03 18:47:40 26 4
gpt4 key购买 nike

我试图在 ipython 中使用魔法命令,我在这里看到的:
rpy2 slides

我做了以下工作:

import rpy2.ipython
%load_ext rpy2.ipython

但我收到以下错误:

ImportError: dlopen(/Users/XXX/anaconda/lib/python2.7/site-packages/rpy2/rinterface/_rinterface.so,

2): Library not loaded: libicuuc.54.dylib Referenced from: /Users/XXX/anaconda/lib/python2.7/site-packages/rpy2/rinterface/_rinterface.so Reason: image not found



一些相关资料:
  • 操作系统:MacOS Sierra
  • Python:2.7.12
  • iPython:IPython 5.1.0
  • rpy2:2.8.3
  • 有没有pip install singledispatch但错误仍然存​​在
  • r 使用 conda 安装
  • 还有一份来自 CRAN
  • 的 R 副本

    最佳答案

    因为我是通过 conda 安装的 R,所以我也需要通过 conda 而不是 pip 来安装 rpy2。要通过 conda 安装 rpy2,请执行以下操作,

    conda install -c r rpy2

    这非常有效。但是,不清楚为什么通过 pip 安装 rpy2 不起作用。

    关于rpy2 - %load_ext rpy2.ipython 找不到图像错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39756013/

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