如何在WINDOWS XP上安装Rpy2 for Python 2.6

时间:2012-11-29 12:56:33

标签: python windows rpy2

我下载了rpy2-2.2.3,并尝试在我的windows xp计算机上使用R:2.12.2,Python:2.6.1:python setup.py install,在复制一些文件之后,它显示错误消息。怎么解决?

Traceback (most recent call last):
  File "setup.py", line 441, in <module>
    [os.path.join('doc', 'source', 'rpy2_logo.png')])],
  File "D:\Python\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "D:\Python\lib\distutils\dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "D:\Python\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
  File "D:\Python\lib\distutils\command\install.py", line 577, in run
    self.run_command('build')
  File "D:\Python\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "D:\Python\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
  File "D:\Python\lib\distutils\command\build.py", line 134, in run
    self.run_command(cmd_name)
  File "D:\Python\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "D:\Python\lib\distutils\dist.py", line 994, in run_command
    cmd_obj.ensure_finalized()
  File "D:\Python\lib\distutils\cmd.py", line 117, in ensure_finalized
    self.finalize_options()
  File "setup.py", line 144, in finalize_options
    rversion = get_rversion(r_home)
  File "setup.py", line 186, in get_rversion
    rversion = m.groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'

R:2.12.2,Python:2.6.1

1 个答案:

答案 0 :(得分:0)

  1. 最新版本是rpy2-2.2.7。
  2. rpy2-2.3.0beta实际上是最新的
  3. 没有官方支持Win32(或Win64),但可能使用最新的rpy2
  4. 构建