rpy2 import is not working

后端 未结 8 1176
逝去的感伤
逝去的感伤 2021-02-14 16:16

I get an error when I try to import rpy2. Here is the code and error.

>>> import pandas.rpy.common
Traceback (most recent call last):  

File \"C:\\PF\         


        
8条回答
  •  眼角桃花
    2021-02-14 16:34

    RPy2 is a separate project from Pandas (homepage here), so you'll have to install it separately. You should be able to do pip install rpy2, then restart Python and try again.

提交回复
热议问题