Open lgautier opened 8 years ago
Original comment by Laurent Gautier (Bitbucket: lgautier, GitHub: lgautier).
There is no official support for rpy2 on Windows. May be the community can help.
What I am seeing is that first error message is:
.\rpy\rinterface\r_utils.c(164) : error C2275: 'SEXP' : illegal use of this
type as an expression
C:/Users/myuser/AppData/Local/Programs/R-3.2.4/include\Rinternals.h
(438) : see declaration of 'SEXP'
Back when I initially supported Windows, and if I remember it right, I had to use MinGW (R, or C extensions to R would not compile with MSVC++).
@cgohlke is contributing unofficial binaries, and I think most of rpy2's Windows users rely on these.
Original comment by Omar Bryan Khan (Bitbucket: obkhan, GitHub: obkhan).
I did try Ming32 and ended up with the same error as ahjulsta : https://bitbucket.org/rpy2/rpy2/issues/261/installation-compilation-error-on-windows
That said the unofficial binaries found at cgohike - seem to work fine, and all I need - thanks! http://www.lfd.uci.edu/~gohlke/pythonlibs/#rpy2
Original comment by Michael Gooch (Bitbucket: kotoroshinoto, GitHub: kotoroshinoto).
it looks like the official binary for python3.5+ are dependant on MS visual 2015 and aren't very compatible with mingw.
as such, somebody really ought to be compiling binary *.whl files and putting them up on pypi so windows users don't need to compiler, OR the source needs to be adjusted to issue msvc compiler commands when the system python compiler is set to MSVC and not mingw or gcc
Original comment by Michael Gooch (Bitbucket: kotoroshinoto, GitHub: kotoroshinoto).
http://www.lfd.uci.edu/~gohlke/pythonlibs/#rpy2
this page seems to have a method worked out for doing it, perhaps ask the person who made these what they did
Original comment by Laurent Gautier (Bitbucket: lgautier, GitHub: lgautier).
Back when made rpy2
binaries for Windows I used the stock Python (compiled with MSVC++) and built rpy2
with mingw (and the R tool chain to build C extensions for R). @cgohlke is currently making the only public Windows builds I know of, but I don't know what he is using.
Original report by Omar Bryan Khan (Bitbucket: obkhan, GitHub: obkhan).