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
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.