I'm trying to use use_virtualenv() from reticulate, but it keeps importing packages which I did not install in the virtual env, but it is istalled outside.
Installed in env: scipy
Installed outsid: plotly
Not installed at all: nltk
library(reticulate) virtualenv_create("r-reticulate") virtualenv_install("r-reticulate", "scipy") use_virtualenv("r-reticulate") scipy <- import("scipy") # Works fine plotly <- import("plotly") # Works fine, but should not nltk <- import("nltk") # Do not import, as expected, since it was not installed in virtualenv