Failed to create wheel for rpy2

I run Python v2.7.8and R v3.0.2 (2013-09-25) -- "Frisbee Sailing"on my initial 64-bit OS Freya (based on Ubuntu 14.04).

I am trying to install a package rpy2using:

pip install rpy2

and error with error:

Failed to create wheel for rpy2

Below, I also see:

Error: gcc command failed with exit status 1

The full conclusion is here .

I already tried:

sudo apt-get install python-dev libevent-dev python3-dev

but the error remains.

I know it pipworks because I've found numpy, matplotlib, scipyand other packages using it.

+4
source share
3 answers

Found the answer in this post . I just needed to upgrade R from v3.0.2to the latest version available for my system ( v3.2.1).

1: R-base

sudo apt-get remove r-base-core

2: .List File

  • sources.list

    sudo gedit /etc/apt/sources.list
    
  • ( Ubuntu 14.04):

    deb http://cran.rstudio.com/bin/linux/ubuntu trusty/
    

3:

gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -

4: R-base

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install r-base

5: rpy2

pip install rpy2
+8

.

, R / . Rpy2 , :

   ./rpy/rinterface/r_utils.c:32:31: fatal error: R_ext/Rallocators.h: No existe el archivo o el directorio
 #include <R_ext/Rallocators.h>
+2

This solution worked for me because it is a header issue: fooobar.com/questions/182210 / ...

sudo apt-get install libreadline-dev 

Or

yum install readline-devel
0
source

Source: https://habr.com/ru/post/1598990/


All Articles