A simple and efficient access to R from Python

rpy rpy2
This site is hosted by
SourceForge.net Logo




  • Python >= 2.4
  • R >= 2.8, compiled with the option --enable-R-shlib


  • Python 2.6
  • R >= 2.11, compiled with the option --enable-R-shlib

Released versions

Automated installation
Fetching and installing the latest release from Pypi can be done by running easy_install
easy_install rpy2
or pip
pip install rpy2

rpy2 is also packaged for a number of systems: Debian/Ubuntu, RedHat/Fedora, openSUSE, Gentoo, Fink, Macports (OS X), FreshPorts (BSD). The Debian packages maintained by Dirk Eddelbuettel are usually updated shortly after new releases, but other distribution can have several months of delay, or even a year.

Manual installation

Source and binary packages are available at:

The documentation for the released version has further instructions regarding the installation process.

Development versions

The primary repository the rpy2 source is now on Mercurial, and at bitbucket: http://www.bitbucket.org/lgautier/rpy2/ .

When using the command-line client, fetching the repository is achieved with:

hg clone https://www.bitbucket.org/lgautier/rpy2 
and switching to the branch of interest with:
hg update -C [branch_name]

A list of branch names can be obtained with:

hg branches

The documentation for the development version has further instructions regarding the installation process.

For the time being, the source in Sourceforge's SVN is no longer up-to-date.


Last update on 10-2012