我正在使用基于 Debian 的 Linux,并尝试使用 pip3 安装 rpy2。
当输入以下命令:
sudo pip3 install rpy2
I get
user@huayra:~$ sudo pip3 install rpy2
Collecting rpy2
Using cached rpy2-2.9.2.tar.gz
Complete output from command python setup.py egg_info:
Error: 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 /tmp/pip-build-r6axcg8n/rpy2/
我已经安装了pip3,版本号为:
pip 9.0.1 from /usr/local/lib/python3.4/dist-packages (python 3.4)
编辑
进行了一些更新后,我重新运行了命令 sudo pip3 install rpy2
并得到以下结果:
Error: R >= 3.3 required (and the R we found is '3.1.1').
R version 3.1.1 (2014-07-10) -- "Sock it to Me"
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-3n_yfk5i/rpy2/
请问有什么可以帮到您的吗?