Tensorflow error but has been detected under R

I still have problem on my Tensorflow under R and I did not find any solution about it.

model <- keras_model_sequential() %>% 
Error: Installation of TensorFlow not found.

Python environments searched for 'tensorflow' package:
 C:\Users\Mezeix\AppData\Local\r-miniconda\envs\r-reticulate\python.exe

You can install TensorFlow using the install_tensorflow() function.

But I have it:

library(usethis)
library(devtools)
library(reticulate)
Sys.setenv(PATH = paste(Sys.getenv('PATH'), "C:/Users/Mezeix/AppData/Local/r-miniconda/envs/r-reticulate/Scripts", sep = ';'))
Sys.setenv(PATH = paste(Sys.getenv('PATH'), "C:/Users/Mezeix/AppData/Local/r-miniconda/envs/r-reticulate/Lib/site-packages/tensorflow", sep = ';'))
use_condaenv("r-reticulate", required = TRUE)
library(tensorflow)
library(keras)
reticulate::py_config()
python:         C:/Users/Mezeix/AppData/Local/r-miniconda/envs/r-reticulate/python.exe
libpython:      C:/Users/Mezeix/AppData/Local/r-miniconda/envs/r-reticulate/python37.dll
pythonhome:     C:/Users/Mezeix/AppData/Local/r-miniconda/envs/r-reticulate
version:        3.7.9 (default, Aug 31 2020, 17:10:11) [MSC v.1916 64 bit (AMD64)]
Architecture:   64bit
numpy:          C:/Users/Mezeix/AppData/Local/r-miniconda/envs/r-reticulate/Lib/site-packages/numpy
numpy_version:  1.19.1
tensorflow:     C:\Users\Mezeix\AppData\Local\R-MINI~1\envs\R-RETI~1\lib\site-packages\tensorflow\__init__.p

NOTE: Python version was forced by use_python function

I installed Keras 2.3 with tensorflow 2.2: not work so I installed previous version keras 2.2 and Tensorflow 2.1: not work also. I installed Python 3.8: not work, Python 3.7: not work. If I install using standard installation, same problem not work.

install_keras(
  method = "conda",
  conda = "auto",
  version = "2.3.0")
library(tensorflow)
install_tensorflow(
  method = "conda",
  conda = "auto",
  version = "2.2.0",
  envname = "r-reticulate",
  extra_packages = NULL,
  restart_session = TRUE,
  conda_python_version = "3.7")

If I do not use use_condaenv("r-reticulate", required = TRUE) Tensorflow is not detected.

If someone knows how to solve it would be great.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.