Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install package keras in R

I'm trying to install deep learning package keras on RStudio using this website. I installed keras using

install.packages("keras") 
library(keras)
install_keras()

but when I tried to open the MNIST dataset

mnist <- dataset_mnist()

I keep getting the error

Error: ModuleNotFoundError: No module named 'absl'

I thought keras installed tensorflow but do I need to install tensorflow separately?

like image 660
Zeus Avatar asked Dec 14 '22 17:12

Zeus


1 Answers

I had the same problem and it is solved by installing the package in two steps:

install keras: install.packages("keras")
keras::install_keras()

There you go!

like image 148
pari Avatar answered Dec 16 '22 07:12

pari