I'm using Tensorflow on R for my research, and I often use "gym" module to check the validity of my reinforcement learning model. There was no problem before installing the Keras interface.
However, I found an error to import Keras and gym modules at the same time, after installing the Keras API.
(When I import just one of these two modules, there was not a problem.)
The following is the detail of the error.
case 1) Import Keras first & import gym after
library(keras) gym <- import("gym")
Error in import("gym") : could not find function "import"
case 2) Import gym first & import Keras after
library(reticulate) gym <- import("gym") library(keras)
Error: package or namespace load failed for ‘keras’:
ImportError: Could not find 'cudart64_80.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Download and install CUDA 8.0 from this URL: https://developer.nvidia.com/cuda-toolkit
I'm now using gpu version of Tensorflow, but I found the same error on my Laptop using cpu version of Tensorflow.
If you have any idea, please reply me.