rpy2 import is not working

后端 未结 8 1131
逝去的感伤
逝去的感伤 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:17

    In my case it initially did not wor installing it with conda. I solved it by first changing the active environment.

    source activate [environment Name]
    conda install -c r rpy2=2.8.5
    

提交回复
热议问题