我下载了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
答案 0 :(得分:0)