I wanted to try a Python script in RStudio for the first time. The initial setup of reticulate seemed to go smoothly with no errors in the process: Virtual environment 'r-reticulate' successfully created
. However, reticulate does not seem to be finding the .dll, although the error shows the correct filepath to it.
When trying to run any Python code (eg print("hi")
) I get the error:
Error: C:/Users/[user.name]/AppData/Local/anaconda3/python311.dll - The specified module could not be found.
Now, the .dll is definitely at that location
python311
I’ve tried restarting RStudio and using a clean environment, and reinstalled reticulate with devtools::install_github("rstudio/reticulate", force = TRUE)
but same issue continues
How can I force reticulate to recognise the dll? Thanks
RY_ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.