Error using keras

I also tried running install_tensorflow() but it did not resolve the problem. I think it has to do with the python version and the virtual environment. Any ideas would be highly appreciated :slight_smile:



Note: You might want to update library(keras) to library(keras3).

In this situation, reticulate should be selecting the virtual environment located at ~/.virtualenvs/r-tensorflow. The fact that it's not being selected suggests there's an issue with that virtual environment.

What happens if you force reticulate to use that virtual environment? Doing so might provide a more informative error message:

Sys.setenv("RETICULATE_PYTHON_ENV" = "r-tensorflow")
reticulate::py_config()

If the problem persists, you can try recreating the Python environment with the following commands:

reticulate::install_python()
tensorflow::install_tensorflow()

Thank you. Your instructions solved my problem!!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.