I'm trying to use python in the RStudio IDE for the first time, and I'm failing to import a certain python package: pyquadkey2.
library(reticulate)
py_install("pyquadkey2")
PackagesNotFoundError: The following packages are not available from current channels:
Error: one or more Python packages failed to install [error code 1]
Is the issue that the package is not part of the repository that py_install() is set to check, in the same way that an R package on github might not be in CRAN? If so, is there an approach equivalent to using devtools to install from github? Or am I barking up the wrong tree?
This is python in RStudio IDE Day 0 for me.
R version 4.0.2 (2020-06-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.7
other attached packages:
[1] reticulate_1.16
I noticed that the results of py_config() were not showing the virtualenv I created, so I restarted R and retraced my steps. Now when I run py_config() I see that I'm pointing to the virtualenv.
And it works!
The tutorials linked above were very helpful. I did not understand the idea of the virtual environments prior to watching the video and stepping through each command.