R_HOME Error with rpy2

后端 未结 2 978
情书的邮戳
情书的邮戳 2020-12-14 11:53

I know there are quite a few posts on getting up and running with rpy2 on windows 7 32 bit. I have referenced a good number of them and attempted their solutions, including

相关标签:
2条回答
  • 2020-12-14 12:32

    With help from the comment above, I got moving in the proper direction. I created the R_HOME as a SYSTEM variable. That didn't work right away, as I was getting an R_USER not defined error.

    To get everything the import above to work without error, I simply re-installed the rpy2 exectuable from here after defining the R_HOME. No errors.

    In summary, key was o have R_HOME set PRIOR TO installing rpy2.

    0 讨论(0)
  • 2020-12-14 12:53

    I confirm this issue is related to R_HOME variable not defined.

    In my opinion, all of these issues are caused because the developers of rpy2 package haven't documented properly the requirements of their software:

    • Install R
    • Create R_HOME system variable
    • Add R_HOME\bin to the PATH, in order to execute R from python
    • Add R_HOME\bin\x64 to the PATH, in order to load R.dll
    • Install package tzlocal
    0 讨论(0)
提交回复
热议问题