Encountering error when installing rpy2: Tried to guess R's HOME but no R command in the PATH

后端 未结 1 1871
生来不讨喜
生来不讨喜 2020-12-31 09:20

I\'ve seen a lot of posts here and elsewhere about this error, but none of the proposed solutions appear to be relevant. I\'m on Python 2.7.9, I have an R executable in my p

相关标签:
1条回答
  • 2020-12-31 10:01

    Download the rpy2‑2.7.5‑cp35‑none‑win_amd64.whl file from Christoph Gohlke's Python Extension Packages for Windows repository here. Using the command line, change to the download folder and run:

    pip install rpy2‑2.5.5‑cp34‑none‑win_amd64.whl
    

    This should solve the R directory issue and rpy2 should install nicely. All credit to MattDMo.

    0 讨论(0)
提交回复
热议问题