Rpy2 not finding package

后端 未结 5 1075
时光说笑
时光说笑 2021-02-04 13:43

I\'m using Rpy2 on windows 7 64 and having trouble loading a package:

in R:

using(mi)

in python:

from rpy2.robjects         


        
5条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-04 14:19

    I also have this problem,and i copy the package i need to base._libPaths() ,here , and it works.

    import rpy2.robjects as objects
    from rpy2.robjects.packages import importer
    base = importr('base')
    base._libPaths()[0]
    

提交回复
热议问题