Skip to content

Cannot install keras on Mac M1 #1309

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

Open
harshvardhaniimi opened this issue Feb 18, 2022 · 0 comments
Open

Cannot install keras on Mac M1 #1309

harshvardhaniimi opened this issue Feb 18, 2022 · 0 comments

Comments

@harshvardhaniimi
Copy link

I can't seem to be able to install keras in my MacBook Air (M1, 2020). I'm following the directions in this tutorial.

When I run the following commands, they run well.

install.packages(keras)
library(keras)
dataset_mnist()

Then, I restart my R session. Following that, I run

keras::install_keras(method = "conda",
                     conda = "~/Library/r-miniconda-arm64")

It gives me following error:

Error: Tensorflow installation failed (no conda binary found)
Install Miniconda by running `reticulate::install_miniconda()`before installing Tensorflow.

I specified conda = "~/Library/r-miniconda-arm64 because I know I have a miniconda there. How? Because when I try installing Miniconda, I get the following error.

Error: Miniconda is already installed at path "~/Library/r-miniconda-arm64".
- Use `reticulate::install_miniconda(force = TRUE)` to overwrite the previous installation.

I tried forcing a fresh installation but it gave me the following error.

ERROR   Could not solve for environment specs
Error: miniconda installation failed [exit code 1]

I'm aware of the previous issues raised in #434 and #691 but they did not help my case. Can anyone take a look please? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant