Installation issue: “python setup.py egg_info” failed with error code 1

无人久伴 提交于 2019-12-14 04:13:12

问题


I get the following error after running pip install rpy2 on a mac with OSX 10.11.2 and Python 2.7.12:

Collecting rpy2
  Downloading rpy2-2.8.2.tar.gz (186kB)
    100% |████████████████████████████████| 194kB 3.0MB/s
    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 /private/var/folders/ml/wk8739s920z0rq1_rjrb2z980000gn/T/pip-build-8TiA72/rpy2/

I have also tried running it with sudo:

Collecting rpy2
  Downloading rpy2-2.8.2.tar.gz (186kB)
    100% |████████████████████████████████| 194kB 2.0MB/s
    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 /private/tmp/pip-build-FDFFDI/rpy2/

I have tried pip install --upgrade setuptool and upgrading pip to latest version but nothing seems to work.

Could you please help?

Thank you.

来源:https://stackoverflow.com/questions/38837489/installation-issue-python-setup-py-egg-info-failed-with-error-code-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!