0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Macにrpy2をインストール

Last updated at Posted at 2017-11-03

rpy2をインストールしようとして失敗した

pip install rpy2

上記実行時、下記エラーが出た。

Collecting rpy2
Downloading rpy2-2.9.0.tar.gz (193kB)
100% |████████████████████████████████| 194kB 1.8MB/s
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 /private/var/folders/4p/8fbl0kss1k95g1jc8jy5_wlm0000gn/T/pip-build-mivm9li3/rpy2/

どうにも、Rが入っていないことが問題らしい。

Rをmacにインストールする。

brew install r

結構時間かかってる。。

rpy2をインストールする。

pip install rpy2

無事インストールできた。

参考元

http://data-hacker.blogspot.jp/2014/02/pythonrrpy2.html
http://blog.amedama.jp/entry/2016/10/12/211749

0
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?