【发布时间】:2016-05-01 23:43:00
【问题描述】:
我在虚拟环境中使用 pip: 扮演角色:
- name: pip Install packages into virtualenv
pip: >
name={{ item }} virtualenv="{{ home }}/{{ venv_name }}"
virtualenv_site_packages="no"
with_items:
- rpy2
安装rpy2时出现此错误:
failed: [vagrant] => (item=rpy2) => {"cmd": "/home/toto/venv /bin/pip install rpy2",
"failed": true, "item": "rpy2"}
msg: stdout: Collecting rpy2
Downloading rpy2-2.7.8.tar.gz (178kB)
Complete output from command python setup.py egg_info:
Error: Tried to guess R's HOME but no command (R) in the PATH.
如何以可靠的方式告知 R home 在 ~/R 中?
【问题讨论】: