-
Notifications
You must be signed in to change notification settings - Fork 322
Installation Issue #527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, can you please include the full output from running the installation commands? install.packages("remotes")
remotes::install_github(sprintf("rstudio/%s", c("reticulate", "tensorflow", "keras")))
reticulate::miniconda_uninstall() # start with a blank slate
reticulate::install_miniconda()
keras::install_keras() |
Sure thing, But I have already have all these packages downloaded, should I force a re-download? |
Yes please :) |
any following up on this? I have updated the output on the original post |
Thanks, I didn't see that you had edited the original post. It looks like you're running R under rosetta, which the pre-built Tensorflow wheels are not compatible with. The easiest solution is to install and use the arm64 version of R. Link |
Awesome, issue resolved. Thank you so much for your help! |
I'm having the same problem. I'm on a MacBook M1 I bought this year, so it's not and old computer. I tried fixing the problem by running this: remotes::install_github(sprintf("rstudio/%s", c("reticulate", "tensorflow", "keras"))) Everything installed fine. I then tried running dataset_mnist() and got the following error (in R, not in RStudio):
*** caught illegal operation *** Traceback: Possible actions: I can open a new issue. I am just wondering though if you think I should install the arm64 version of R. I think I already have it. This is what R says when I open it: R version 4.1.2 (2021-11-01) -- "Bird Hippie" Thanks in advance for any help! I really hope I can get this to work. |
You need to install the arm64 (m1) version of R, not x86 (intel). You can find more detailed instructions here: https://tensorflow.rstudio.com/install/local_gpu (macOS pane) Once you're installed the correct version of R, the code you ran above to install Keras should work without issue. |
Awesome! I just installed the arm64, and now my R version says: R version 4.2.1 (2022-06-23) -- "Funny-Looking Kid" I then re-ran this: install.packages("remotes") library(keras) mnist <- dataset_mnist() And it worked!! Thank you so much! |
Uh oh!
There was an error while loading. Please reload this page.
Many installation issues are resolved by running the following in a fresh R session (you can restart R in Rstudio with Ctrl+Shift+F10) :
Test to see if installation was successful.
If the above snippet succeeded and you saw something like
tf.Tensor(b'Hello World', shape=(), dtype=string)
, then 🎉, you've successfully installed Tensorflow.If the above installation failed, please gather some diagnostic info:
Please copy and paste the FULL OUTPUT of running all three snippets, and be sure to enclose the output lines with three backticks (```) for monospace formatting.
output for installation:
for testing tf
for diagnose:
The text was updated successfully, but these errors were encountered: