I'm trying to install rpy2 in my virtual environment and I get this error message. Can anyone help me figure out how to use rpy2.robjects in my flask app?
In file included from /usr/share/R/include/Rdefines.h:25:0,
from ./rpy/rinterface/r_utils.c:23:
/usr/share/R/include/R_ext/Memory.h:40:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
int R_gc_running();
^
In file included from /usr/share/R/include/Rdefines.h:29:0,
from ./rpy/rinterface/r_utils.c:23:
/usr/share/R/include/Rinternals.h:719:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
const char *R_curErrorBuf();
^
./rpy/rinterface/r_utils.c:24:31: fatal error: R_ext/Rallocators.h: No such file or directory
#include <R_ext/Rallocators.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/home/yoonk0/.virtualenvs/deploy/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-cBTFIy/rpy2/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-n50S5_-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/yoonk0/.virtualenvs/deploy/include/site/py
thon2.7/rpy2" failed with error code 1 in /tmp/pip-build-cBTFIy/rpy2/
[edit by admin: formatting]