I'm trying to import a python library LDpred from Github (https://github.com/bvilhjal/ldpred). I used
pip install ldpred and so I am able to run ldpred from the terminal, but I can't figure out how to use reticulate in an .Rmd chunk to
import ldpred. I've tried reading the reticulate guides and using
use_python() but nothing so far has worked. I just get:
No module named 'ldpred' - so I guess the ldpred package didn't install to the same version of python that R is using. I can't figure out how to fix this problem.
If anyone could give some tips on this I would really appreciate it. I've spent awhile trying to figure this out.