0

最初我有一个与 rpy2 相关的问题,但是在解决了这个问题之后,当我在 ipython 单元格中使用 R 时,我得到了以下错误:

    %%R
    plot(7)
    Error in dev.off() : cannot shut down device 1 (the null device)
    In addition: Warning message:
    In png("/tmp/tmplXba8T/Rplots%03d.png", ) : failed to load cairo DLL
    Error in (function (display = "", width, height, pointsize, gamma, bg,  : 
      X11 module cannot be loaded
    In addition: Warning messages:
    1: In png("/tmp/tmp_avqKe/Rplots%03d.png", ) : failed to load cairo DLL
    2: In (function (display = "", width, height, pointsize, gamma, bg,  :
      unable to load shared object '/../R/3.0.2/precise-x86_64/lib/R/modules//R_X11.so':
      /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0: undefined symbol: cairo_ft_font_options_substitute
    Error in (function (display = "",width, height, pointsize, gamma, bg,  : 
  X11 module cannot be loaded

我正在使用conda,我认为使用 conda 应该比通过 virtualenv 设置更好,但看起来这真的很痛苦。

4

0 回答 0