Error when installing rpy2 module in Python with easy_install

后端 未结 2 1623
青春惊慌失措
青春惊慌失措 2020-12-11 13:12

I\'ve been trying to install the rpy2 module so I can use R functions inside my Python script, but I\'m getting an error after following the advice from these pages:

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-11 13:49

    There's a much easier way to go about this - install rpy2 from Christoph Gohlke's Python Extension Packages for Windows repository here. Download the rpy2‑2.5.5‑cp34‑none‑win_amd64.whl file (the current version at the time of this writing), change to the download folder on the command line, and run

    pip install rpy2‑2.5.5‑cp34‑none‑win_amd64.whl
    

    pip is already included in Python 3.4, and should be used instead of easy_install when installing new modules, as easy_install is deprecated.

提交回复
热议问题