无法在jupyter笔记本中导入rmagic

时间:2018-06-08 17:56:42

标签: python jupyter-notebook rmagick

我正在使用jupyer笔记本并尝试运行R代码。

我已经在笔记本内部安装了带有pip3的rpy2(以及以防万一)。尝试加载扩展时我得到的是:

%load_ext rpy2.ipython
Cannot import 
ImportError: dlopen(/usr/local/lib/python3.6/site-packages/rpy2/rinterface/_rinterface.cpython-36m-darwin.so, 2): Library not loaded: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libR.dylib
  Referenced from: /usr/local/lib/python3.6/site-packages/rpy2/rinterface/_rinterface.cpython-36m-darwin.so
  Reason: image not found

我正在使用macOS 10.13.4

由于

0 个答案:

没有答案