在 Windows 上编译 rpy2 需要什么设置?
我已经能够从 Source Forge 的 .msi
安装 rpy2
v2.0.8,但我想使用包含软件包代码的最新版本,即v2.1.9
。
我正在尝试在 Windows 中编译 rpy2 (python 2.6.6
)。
CL 抱怨是因为 LibExtern
在不同的地方被定义为 extern
和 declspec
。
gcc
和 c++
也无法无错误地编译。
我假设这在unix上编译正常,并且我所缺少的只是一些配置(可能的环境变量),因为我不敢相信它会以不可编译的形式发布。
有人请指出我正确的方向吗?
非常感谢
DM
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最好的选择是从此网站下载它。它具有需要编译才能工作的所有流行存储库。它基本上是加州大学欧文分校荧光动力学实验室的 Christoph Gohlke 的一组用于 Python 扩展包的非官方 Windows 二进制文件。
我已经为您提供了最新版本
rpy2
的链接,并且每种类型的 Python 都有相应的版本。请注意,您需要安装 R。下载 2.7 的版本,它应该适用于 2.6.6,但如果不能,则更新您的 Python 2.7.5。但是,如果您仍然热衷于实际编译二进制文件,那么您将需要向我提供错误消息和回溯,否则,人们无法确定您的确切问题是什么。
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.