install rpy2 on Windows7 64bit for Python 2.7

后端 未结 5 1489
滥情空心
滥情空心 2021-01-17 14:36

I am trying to build and install rpy2 Python Module. But got an error (see below).

I have R installed in C:\\Program Files\\R\\R-2.15.0\\ and R.h

5条回答
  •  天涯浪人
    2021-01-17 14:46

    This is because your R include library is not in your CPPFLAGS enviroment variable. You should find the file R.h in your "C:\Program Files\R\R-2.15.0\include". In linux, you can add this to your .bashrc

    export "$CPPFLAGS=-I/path-to-R/include $CPPFLAGS"
    

    But i'm not familar to python and R in windows. That's all I can help.

提交回复
热议问题