0

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

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

4

1 回答 1

0
  1. 最新的是 rpy2-2.2.7。
  2. rpy2-2.3.0beta 其实是最新的
  3. 没有对 Win32(或 Win64)的官方支持,但它可能使用最新的 rpy2 构建
于 2012-11-29T16:13:43.600 回答