Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What setup is need to compile rpy2 on Windows?

Tags:

python

r

rpy2

I've been able to install rpy2 v2.0.8 from the .msi from source forge, but I'd like to use the latest version that includes the packages code, i.e. v2.1.9.

I'm attempting to compile rpy2 in windows (python 2.6.6).

CL is complaining because LibExtern is being defined as extern and as declspec in different place.

gcc and c++ can't compile without errors either.

I'm assuming this compiles ok on unix and that all I'm missing is some config (prob environment variables), since I can't believe it would have been released in a non-compilable form.

Any anyone point me in the right direction pls?

Many thx

DM

like image 717
DangerMouse Avatar asked May 25 '11 14:05

DangerMouse


People also ask

Does rpy2 work on Windows?

Here's what [ReadTheDocs. rpy2]: Installation (which has "Compiling on Linux" and "Compiling on OS X" sections, but nothing about Win, although it mentions that it should compile successfully) states: There is currently no binaries or support for Microsoft Windows (more for lack of resources than anything else).

Do I need to install R for rpy2?

Installing rpy2You must have Python >=3.7 and R >= 4.0 installed to use rpy2 3.5.

Is rpy2 discontinued?

Rpy2 (discontinued, unstable): provide access to the R software environment for statistical computing and graphics.


1 Answers

Your best bet is to download it from this site. It has all the popular repositories that need to be compiled in order to work. Its basically a group Unofficial Windows Binaries for Python Extension Packages by Christoph Gohlke at The Laboratory for Fluorescence Dynamics, University of California, Irvine.

I've given you the link to the latest version of rpy2, and there are versions for every type of Python. Please note that you will need R installed. Download the version for 2.7, it should work for 2.6.6, but if it does not, then update your Python 2.7.5.

However, if you are still keen on actually compiling the binaries, then you will need to give me the error messages and the tracebacks, as otherwise, one cannot know for sure what your exact problems are.

like image 62
Games Brainiac Avatar answered Sep 21 '22 16:09

Games Brainiac