为了在Python下调用R,需要安装rpy2包。

正常以pip install rpy2和easy_install rpy2均报错。

最后在网站下载适合自己系统的.whl文件

安装rpy2

pip install rpy2-2.7.8-cp34-none-win32.whl

安装成功!