使用pip为Python 3安装rpy2 [英] Installing rpy2 for Python 3 using pip

查看:446
本文介绍了使用pip为Python 3安装rpy2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 7上为python 3安装rpy2软件包.因此,我只是在命令行中键入了pip install rpy2.但是,由于我不了解的原因而导致失败,任何人都可以解决此问题吗?它在命令行中返回了以下内容:

I am trying to install the rpy2 package for python 3 on Windows 7. So I simply typed pip install rpy2 in the command line. However, it fails for a reason I do not understand, could anyone clear this up please? It threw back the following in the command line:

    Collecting rpy2
    Using cached rpy2-2.8.2.tar.gz
    Complete output from command python setup.py egg_info:
    Warning: Tried to guess R's HOME but no command <R> in the PATH.
    _______________________________
    Command "python setup.py egg_info" failed with error code 1 in C:\Users\...\AppData\Local\Temp\pip-build-14jn4kdx\rpy2\

推荐答案

没有Windows的官方支持.

There is no official support of windows.

存在预编译的二进制文件(请参阅:

There exists pre-compiled binaries (see: https://rpy2.github.io/doc/latest/html/overview.html#microsoft-s-windows-precompiled-binaries) but they are for an older release.

在撰写本文时,使用Windows 10附带的Linux子系统可能是最好的选择.

At the time of writing using the Linux subsystem available with Windows 10 might be the best options.

这篇关于使用pip为Python 3安装rpy2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆