从Pandas调用R时出错

时间:2012-12-17 08:49:07

标签: pandas rpy2

我只是按照本教程:http://pandas.pydata.org/pandas-docs/dev/r_interface.html 当我输入:

import pandas.rpy.common as com

它给出了以下错误消息:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Python\Lib\site-packages\pandas\rpy\common.py", line 11, in <module>
    from rpy2.robjects.packages import importr
ImportError: No module named packages

如何解决?

Pandas 0.8.1 + Python 2.6 + R 2.12.2 + rpy2 2.0.8 + window-xp

0 个答案:

没有答案