0
airbears2-10-142-34-155:rpy2-2.7.8 clarkkent$ ls
AUTHORS     NEWS        README.rst  rpy     setup.cfg
MANIFEST.in PKG-INFO    doc     rpy2.egg-info   setup.py
airbears2-10-142-34-155:rpy2-2.7.8 clarkkent$ python setup.py install
Error: Tried to guess R's HOME but no command (R) in the PATH.

airbears2-10-142-34-155:rpy2-2.7.8 pitcany$ echo $R_HOME
/Library/Frameworks/R.framework/Resources/R

Yes, I have tried exporting R_HOME and nothing works. Help? What can I do?

Kashif
  • 3,063
  • 6
  • 29
  • 45

2 Answers2

0

Try using pip instead. I know it seems convoluted, installing one thing to install another, to install what you want, but it works for me.

First, install easy_install:

curl https://bootstrap.pypa.io/ez_setup.py -o - | sudo python

Then use that to install pip:

sudo easy_install pip

Then use that to install rpy2:

sudo pip install rpy2
Community
  • 1
  • 1
rosscova
  • 5,430
  • 1
  • 22
  • 35
0

I'd actually install conda and do conda install. Conda can be pipped as well, but also comes with the Anaconda Python distribution for free. It manages also sorts of dependency stuff very well which can be a huge pain w/ the PyData stack.

How to install rpy2 via conda using default R installation

Community
  • 1
  • 1