You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The original issue was almost certainly due to reticulate loading the wrong python (note the mismatch between the python binary in a venv, and libpython and pythonhome being from a different, anaconda, python installation).
In any case, the latest version of reticulate (1.31) has updated python finding behavior, and the tensorFlow + keras packages have updated installation routines to match. This alone should now work:
remotes::install_github("rstudio/reticulate")
remotes::install_github("rstudio/tensorflow")
remotes::install_github("rstudio/keras")
reticulate::install_python()
keras::install_keras()
# restart the R session, cmd+shift+0 or ctrl+shift+F10
library(keras)
# everything should now work
Hi all,
I was running the following example from the RStudio TensorFlow page, without the only change being the setup of the environment: https://tensorflow.rstudio.com/tutorials/advanced/images/transfer-learning-hub/
However, midway the following error occurred:
ImportError: Could not import PIL.Image. The use of
load_imgrequires PIL.
I am running on MacOS 11.0.1 with the Apple TensorFlow backend. My
reticulate::py_config()
returns the following result:I installed
Pillow
with the following terminal code:and I can confirm it works by the following terminal code:
So I don't know what else I could do to address the ImportError mentioned at the beginning. Any pointer/helper is much appreciated.
The text was updated successfully, but these errors were encountered: