导入pandas.rpy.comon时出现错误信息提示我? http://pandas.pydata.org/pandas-docs/dev/r_interface.html
import pandas.rpy.common as com
Traceback (most recent call last):
File "<ipython-input-144-63ebebefea80>", line 1, in <module>
import pandas.rpy.common as com
File "C:\Anaconda\lib\site-packages\pandas\rpy\__init__.py", line 2, in <module>
from .common import importr, r, load_data
File "C:\Anaconda\lib\site-packages\pandas\rpy\common.py", line 14, in <module>
from rpy2.robjects.packages import importr
File "C:\Anaconda\lib\site-packages\rpy2\robjects\__init__.py", line 18, in <module>
from rpy2.robjects.robject import RObjectMixin, RObject
File "C:\Anaconda\lib\site-packages\rpy2\robjects\robject.py", line 5, in <module>
rpy2.rinterface.initr()
AttributeError: 'module' object has no attribute 'initr'