Egg_info安装rpy2时出错windows10

Egg_info error when installing rpy2 windows 10

我想安装 rpy2,接下来安装 anacondaspyder 以使用 python。

我试过这个命令

py -m pip install rpy2

但它给了我这个错误

Command "python setup.py egg_info" failed with error code 1 in C:\Users\Robert\AppData\Local\Temp\pip-build-o27u4aog\rpy2\

我也尝试使用类似的 pip 命令安装 unroll,但它给了我类似的错误

Command "python setup.py egg_info" failed with error code 1 in C:\Users\Robert\AppData\Local\Temp\pip-build-nyfqo09i\uroll\

例如建议的那样here我成功了

py -m pip install --upgrade setuptools

py -m pip install ez_setup

但没有任何帮助。我不得不卸载 anaconda--upgrade setuptools 期待安装 rpy2 但现在我不知道还能做什么。

我正在使用 windows 10、R 3.2.5python 3.5.

有什么建议吗?

使用预编译的二进制文件。

参见:http://rpy2.readthedocs.io/en/default/overview.html#microsoft-s-windows-precompiled-binaries

rpy2 的主页将更新以表明 pip install 不是在 Windows 上安装 rpy2 的最简单方法。