installation of Keras package

Hi,

I have been trying to install keras (and tensorflow) for quite a long time without a success :frowning:

I have seen a few of posts according to problem like that but any of them doesn't help me ..

I have made everything according to documentation and tips of community but it still doesn't work...

I have made that in this way :

devtools::install_github("rstudio/keras") library(keras) keras::install_keras()
After that, if I am doing function like that : model -> keras_model_sequential() - i have been getting this error :

BŁĄD: Installation of TensorFlow not found.

Python environments searched for 'tensorflow' package:
*** C:\Users\PC\Anaconda3\envs\r-reticulate\python.exe***
*** C:\Users\PC\Anaconda3\python.exe***

You can install TensorFlow using the install_tensorflow() function.

But...

using - reticulate::py_config() :

python: C:/Users/PC/Anaconda3/envs/r-reticulate/python.exe
libpython: C:/Users/PC/Anaconda3/envs/r-reticulate/python36.dll
pythonhome: C:/Users/PC/Anaconda3/envs/r-reticulate
version: 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 14:00:49) [MSC v.1915 64 bit (AMD64)]
Architecture: 64bit
numpy: C:/Users/PC/Anaconda3/envs/r-reticulate/Lib/site-packages/numpy
numpy_version: 1.18.0
tensorflow: C:\Users\PC\ANACON~1\envs\R-RETI~1\lib\site-packages\tensorflow_init_.p

*python versions found: *

  • C:/Users/PC/Anaconda3/envs/r-reticulate/python.exe*
  • C:/Users/PC/Anaconda3/python.exe*

It seems like its installed...

Does anyone here is able to help me ? :frowning: :frowning:

Download and install miniconda from the link given below.
https://docs.conda.io/en/latest/miniconda.html

Then run the commands:

library(keras)
install_keras() 

Hope that helps.

That doesn't work as well :frowning:

BŁĄD: Installation of TensorFlow not found.

Python environments searched for 'tensorflow' package:
C:\Users\PC\Miniconda3\envs\r-reticulate\python.exe
C:\Users\PC\Miniconda3\python.exe

You can install TensorFlow using the install_tensorflow() function.

keras is working in python environment bur still doesn't work in R using install_keras. Its impossible for R to find tensorflow installation

Update the packages. Then try:

reticulate::use_python("/Users/../miniconda/bin/python")

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.