Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R reticulate install python libraries from Github

Does anyone have any ideas on how to directly install the python libraries available on Github from reticulate? The py_install function only supports libraries available on conda or PyPI.

For example, when building an R package based on a python library only available on Github, do I inevitably have to copy the source code of the library into my package?

like image 654
user418560 Avatar asked Jun 21 '26 21:06

user418560


1 Answers

Finally, in the function where I set up the python environment for the package, I called the R base system function where I pass the install command.

For example, for the pylearn-parsimony library which is not available on Conda, I used this line which worked:

system("pip install git+git://github.com/neurospin/pylearn-parsimony.git@master")
like image 90
user418560 Avatar answered Jun 23 '26 10:06

user418560



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!