Skip to main content
Formatting.
Source Link
johnsyweb
  • 142.9k
  • 26
  • 197
  • 253

Hi I just download rpy2 and Python 2.6. When I try to run some of example code I found on the internet, I got this error. Can anyone explain why this is happening and how can I fix it? Thanks.

import rpy2.robjects as RO

Traceback (most recent call last): File "<pyshell#0>", line 1, in import rpy2.robjects as RO File "C:\Python26\lib\site-packages\rpy2\robjects_init_.py", line 12, in import rpy2.rinterface as rinterface File "C:\Python26\lib\site-packages\rpy2\rinterface_init_.py", line 22, in "This might be because R.exe is nowhere in your Path.") RuntimeError: Unable to determine R version from the registery.Calling the command 'R RHOME' does not return anything. This might be because R.exe is nowhere in your Path.

import rpy2.robjects as RO Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import rpy2.robjects as RO File "C:\Python26\lib\site-packages\rpy2\robjects\__init__.py", line 12, in <module> import rpy2.rinterface as rinterface File "C:\Python26\lib\site-packages\rpy2\rinterface\__init__.py", line 22, in <module> "This might be because R.exe is nowhere in your Path.") RuntimeError: Unable to determine R version from the registery.Calling the command 'R RHOME' does not return anything. This might be because R.exe is nowhere in your Path. 

Hi I just download rpy2 and Python 2.6. When I try to run some of example code I found on the internet, I got this error. Can anyone explain why this is happening and how can I fix it? Thanks.

import rpy2.robjects as RO

Traceback (most recent call last): File "<pyshell#0>", line 1, in import rpy2.robjects as RO File "C:\Python26\lib\site-packages\rpy2\robjects_init_.py", line 12, in import rpy2.rinterface as rinterface File "C:\Python26\lib\site-packages\rpy2\rinterface_init_.py", line 22, in "This might be because R.exe is nowhere in your Path.") RuntimeError: Unable to determine R version from the registery.Calling the command 'R RHOME' does not return anything. This might be because R.exe is nowhere in your Path.

Hi I just download rpy2 and Python 2.6. When I try to run some of example code I found on the internet, I got this error. Can anyone explain why this is happening and how can I fix it? Thanks.

import rpy2.robjects as RO Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import rpy2.robjects as RO File "C:\Python26\lib\site-packages\rpy2\robjects\__init__.py", line 12, in <module> import rpy2.rinterface as rinterface File "C:\Python26\lib\site-packages\rpy2\rinterface\__init__.py", line 22, in <module> "This might be because R.exe is nowhere in your Path.") RuntimeError: Unable to determine R version from the registery.Calling the command 'R RHOME' does not return anything. This might be because R.exe is nowhere in your Path. 
Source Link
xiaodai
  • 16.3k
  • 21
  • 93
  • 160

How do I set up rpy2?

Hi I just download rpy2 and Python 2.6. When I try to run some of example code I found on the internet, I got this error. Can anyone explain why this is happening and how can I fix it? Thanks.

import rpy2.robjects as RO

Traceback (most recent call last): File "<pyshell#0>", line 1, in import rpy2.robjects as RO File "C:\Python26\lib\site-packages\rpy2\robjects_init_.py", line 12, in import rpy2.rinterface as rinterface File "C:\Python26\lib\site-packages\rpy2\rinterface_init_.py", line 22, in "This might be because R.exe is nowhere in your Path.") RuntimeError: Unable to determine R version from the registery.Calling the command 'R RHOME' does not return anything. This might be because R.exe is nowhere in your Path.