You can just run ez_setup.py and let it decide for you.
2.Add C:\Program Files\R\R-2.12.1\bin\i386 (the path to R.dll) to the environment variable PATH 3.Add an environment variable R_HOME with C:\Program Files\R\R-2.12.1 4.Add an environment variable R_USER with your Windows username
回答3:
Installation worked for me when I did
pip install rpy2
but not when I did
sudo pip install rpy2
So in case you were using sudo and not mentioning it, this might help you. I also tried manually installing from source, which worked when I used just 'python setup.py install' for the install step, but not with sudo!
I did this on CentOS 7 with Python 2.7 and R 3.2 (as the root user). On sudo's behavior, see this question.
回答4:
I had the same problem (on a Mac) and none of the solutions I found online worked. The only thing that worked for me was: