Error: Python module tensorflow was not found. (similar to previous threads, but those solutions did not fix)

Having the same problem as Python module tensorflow was not found. (Similar to issue #144)
Tried solution of updating cuda -all, did not fix.
I have spaces in my username (identified as a problem in the earlier thread for 144), but that supposedly has been fixed?

I'm trying to run tensorflow in R. I used:

> install.packages("tensorflow")
> library(tensorflow)
> install_tensorflow(conda="C:\\Users\\Evan.Miller\\anaconda3\\envs\\tf",envname = 'tf')
...
> library(tensorflow)
> use_condaenv("tf")
> sess <- tf$Session()

Error: Installation of TensorFlow not found.

Python environments searched for 'tensorflow' package:
C:\Users\Evan.Miller\anaconda3\envs\tf\python.exe
C:\Users\Evan.Miller\AppData\Local\Programs\Python\Python36-32\python.exe
C:\Users\Evan.Miller\anaconda3\python.exe
C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\python.exe
C:\Users\Evan.Miller\anaconda3\envs\tf-gpu\python.exe

You can install TensorFlow using the install_tensorflow() function.

> sess <- tf$Session()

Error: Python module tensorflow was not found.

Detected Python configuration:

python: C:/Users/Evan.Miller/anaconda3/envs/tf/python.exe
libpython: C:/Users/Evan.Miller/anaconda3/envs/tf/python36.dll
pythonhome: C:/Users/Evan.Miller/anaconda3/envs/tf
version: 3.6.10 |Anaconda, Inc.| (default, May 7 2020, 19:46:08) [MSC v.1916 64 bit (AMD64)]
Architecture: 64bit
numpy: C:/Users/Evan.Miller/anaconda3/envs/tf/Lib/site-packages/numpy
numpy_version: 1.19.1
tensorflow: C:\Users\EVAN~1.MIL\ANACON~1\envs\tf\lib\site-packages\tensorflow_init_.p

python versions found:
C:/Users/Evan.Miller/anaconda3/envs/tf/python.exe
C:/Users/Evan.Miller/AppData/Local/Programs/Python/Python36-32/python.exe
C:/Users/Evan.Miller/anaconda3/python.exe
C:/Program Files (x86)/Microsoft Visual Studio/Shared/Anaconda3_64/python.exe
C:/Users/Evan.Miller/anaconda3/envs/tf-gpu/python.exe

Any help is much appreciated!

EDIT: I tried again using the recommended

devtools::install_github("rstudio/tensorflow")

instead of

install.packages("tensorflow")

but the results were the same.

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