If you would like to install Python packages in Posit Cloud (formerly RStudio Cloud), we would recommend doing something similar to the below:
library(reticulate)
virtualenv_create("myenv")
use_virtualenv("myenv", required = TRUE)
py_install("package_name") or virtualenv_install("package_name")
Comments