[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 <rekado@elephly.net> 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 guix.bordeaux.inria.fr 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:
/gnu/store/66ncidnhpj2djnik3g6iljzr30k056cy-python-minimal-3.10.7/bin/python3.10
Python exception encountered:
Traceback (most recent call last):
File
"/gnu/store/sd979h0ckv6fnmwqvlypq91w49q9521k-r-reticulate-1.35.0/site-library/reticulate/python/rpytools/loader.py",
line 119, in _find_and_load_hook
return _run_hook(name, _hook)
File
"/gnu/store/sd979h0ckv6fnmwqvlypq91w49q9521k-r-reticulate-1.35.0/site-library/reticulate/python/rpytools/loader.py",
line 93, in _run_hook
module = hook()
File
"/gnu/store/sd979h0ckv6fnmwqvlypq91w49q9521k-r-reticulate-1.35.0/site-library/reticulate/python/rpytools/loader.py",
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…
Cheers,
simon
- Re: how to use r-keras?,
Simon Tournier <=