[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to use r-keras?

From: Simon Tournier
Subject: Re: how to use r-keras?
Date: Mon, 06 May 2024 19:11:21 +0200

Hi Ricardo,

On sam., 30 mars 2024 at 00:27, Ricardo Wurmus <> wrote:

>> $ guix shell r r-keras -C python-minimal r-reticulate tensorflow
> Is this with tensorflow from guix-science?  The old Tensorflow 1.9 in
> Guix does not provide Keras.  Only the more recent one in Guix Science
> does.

Using Guix 929ddec, it fails as reported previously; using
tensorflow@1.9.0.  Let try with tensorflow@2.13.1.

Well, although I have as substitutes, I had to
rebuild tensorflow.  Ouch!

Then I get this:

--8<---------------cut here---------------start------------->8---
$ guix time-machine -C channels.scm -- shell -C r r-keras -C python-minimal 
r-reticulate tensorflow@2.13.1
simon@lili /tmp [env]$ R

R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-unknown-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(keras)
> model <- keras_model_sequential()
Would you like to create a default python environment for the reticulate 
package? (Yes/no/cancel) no
Error: Valid installation of TensorFlow not found.

Python environments searched for 'tensorflow' package:

Python exception encountered:
 Traceback (most recent call last):
 line 119, in _find_and_load_hook
    return _run_hook(name, _hook)
 line 93, in _run_hook
    module = hook()
 line 117, in _hook
    return _find_and_load(name, import_)
ModuleNotFoundError: No module named 'tensorflow'

You can install TensorFlow using the install_tensorflow() function.
--8<---------------cut here---------------end--------------->8---

And I guess that’s not better. :-)

Hum, working with Keras needs more love…


reply via email to

[Prev in Thread] Current Thread [Next in Thread]