使用pip为Python 3安装rpy2 [英] Installing rpy2 for Python 3 using pip
问题描述
我正在尝试在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屋!