在ubuntu中安装rpy2时出错

时间:2014-04-10 02:34:31

标签: python r ubuntu pip rpy2

我正在尝试在ubuntu 13.10上安装rpy2但是当我运行时我一直收到以下错误

pip install r2py
    Downloading/unpacking rpy2
  Downloading rpy2-2.3.9.tar.gz (187kB): 187kB downloaded
  Running setup.py egg_info for package rpy2

    "/usr/lib/R/bin/R" CMD config --ldflags
    Invalid substring
    -fopenmp
    in string
    -Wl,--export-dynamic -fopenmp  -L/usr/lib/R/lib -lR -lpcre -llzma -lbz2 -lrt -ldl -lm
    Problem while running `"/usr/lib/R/bin/R" CMD config --ldflags`

    Complete output from command python setup.py egg_info:
    running egg_info

creating pip-egg-info/rpy2.egg-info

writing pip-egg-info/rpy2.egg-info/PKG-INFO

writing top-level names to pip-egg-info/rpy2.egg-info/top_level.txt

writing dependency_links to pip-egg-info/rpy2.egg-info/dependency_links.txt

writing manifest file 'pip-egg-info/rpy2.egg-info/SOURCES.txt'

warning: manifest_maker: standard file '-c' not found



"/usr/lib/R/bin/R" CMD config --ldflags

Invalid substring

-fopenmp

in string

-Wl,--export-dynamic -fopenmp  -L/usr/lib/R/lib -lR -lpcre -llzma -lbz2 -lrt -ldl -lm

Problem while running `"/usr/lib/R/bin/R" CMD config --ldflags`



----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/rpy2
Storing complete log in /home/sina/.pip/pip.log

我尝试从源代码安装软件包,但是我得到了同样的错误。

任何人都可以帮我吗?

由于

2 个答案:

答案 0 :(得分:1)

它在rpy2 2.3.10中修复。 (在pypi上可用)。

答案 1 :(得分:0)