Issue
I have keras
installed with devtools
from GitHub in R and TensorFlow installed in Python.
However when I run an example Keras command like:
model <- keras_model_sequential()
I get the following:
Error: Python module tensorflow.contrib.keras.python.keras was not found.
Detected Python configuration: python: C:\Python35\python.exe libpython: C:/Python35/python35.dll pythonhome: C:\Python35 version: 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)] Architecture: 64bit numpy: C:\Python35\lib\site-packages\numpy numpy_version: 1.13.0 tensorflow: C:\Python35\lib\site-packages\tensorflow python versions found: C:\Python35\python.exe C:\Python27\\python.exe C:\Python35\\python.exe C:\Python36\\python.exe
Solution
I had a similar problem. Restart rstudio, load keras and tensorflow libraries, and type use_condaenv("r-tensorflow")
. That fixed it for me.
Answered By - Nihit Save
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.