install rpy2 on Windows7 64bit for Python 2.7

后端 未结 5 1490
滥情空心
滥情空心 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-17 15:02

    My experience (2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit (AMD64)]): - all binary installers - apparently rpy2 has unspecified dependencies - have numpy and scipy installed (win_amd64 binaries) with their unspecified dependencies

    1. install R, install needed packages
    2. install pywin32
    3. "pip install singledispatch"
    4. "pip install rpy2-2.5.6-cp27-none-win_amd64.whl"
    5. update environment, e.g. os.environ['R_HOME'] = r'C:\Program Files\R\R-3.1.3' os.environ['R_USER'] = r'C:\Python27\Lib\site-packages\rpy2'

提交回复
热议问题