问题描述
我正在尝试将rpy2
加载到正在使用anaconda
的项目中,但是却遇到了一个令人惊讶的错误,无法找到解决方案.我的python版本是3.4
,我的anaconda版本是3.17.0
-我使用的是Mac(OSX Yosemite版本10.10.4)
I am trying to load rpy2
inside a project where I am working with anaconda
and I am getting a surprising error for which I cannot find a solution.My python version is 3.4
, my anaconda version is 3.17.0
- I am using a Mac (OSX Yosemite version 10.10.4)
R version 3.2.2 (2015-08-14) -- "Fire Safety"
Platform: x86_64-apple-darwin11.4.2 (64-bit)
try:
from rpy2 import robjects
except ImportError as e:
print(e)
我收到此错误消息
/Users/user1/anaconda/lib/python3.4/site-packages/rpy2/rinterface/_rinterface.so原因:找不到图片
/Users/user1/anaconda/lib/python3.4/site-packages/rpy2/rinterface/_rinterface.soReason: image not found
预先感谢您的帮助
推荐答案
我刚刚针对R 3.2.2构建了更新的rpy2 2.7.0.你可以运行
I just built an updated rpy2 2.7.0 against R 3.2.2. Can you run
conda install -c r rpy2
看看是否可以解决?
这篇关于使用anaconda加载rpy2时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!