Error installing rpy2 on Windows 8 (Anaconda)

I have the latest Anaconda Python distribution installed on Windows 8 and I'm trying to install the rpy2 package. At first, I ran into several problems that I was able to work around, but now I am stuck in one specific error, which I am inserting below.

Team

pip install rpy2

comes out with the following error message:

In file included from .\rpy\rinterface\_rinterface.c:58:0:

.\rpy\rinterface\_rinterface.h:8:15: fatal error: R.h: No such file or
directory

compilation terminated.

error: command 'gcc' failed with exit status 1

Any suggestions? The path to Rh is included in my environment.

+4
source share
1 answer

. Gohlke, , . Python , . HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7\InstallPath. , anaconda Python Python. , .

+5

Source: https://habr.com/ru/post/1543920/


All Articles