2016-08-15 180 views
1

我正在嘗試在Windows 7上安裝用於python 3的rpy2軟件包。所以我只需在命令行中鍵入pip install rpy2。但是,由於我不明白的原因,這個失敗了,請問有誰能清楚這一點?它在命令行中回退以下內容:使用pip爲Python 3安裝rpy2

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\ 

回答

1

您的R二進制文件是否在PATH變量中?

在命令提示符試試這個:

path = C:\path\to\R 
pip install rpy2