When calling keras package in R (using reticulate), you might have some problems like the one in the snapshot.
It means there is not tensorflow package in Python: you must install tensorflow in your current environment in Anaconda. However, there are problems when installing tensorflow in the base environment (default environment in Anaconda). Therefore, we highly recommend to set another environment to run Python scripts (and to use reticulate in R).
Once you've created an environmentenvironment (say "tenskeras" as an example). You must set the environment before using reticulate in R. It can be accomplished by typing in the R console before rendering the chapter.
When calling
![image](https://user-images.githubusercontent.com/87502811/140387748-9571a8ea-c675-4277-880c-da49f2c860a7.png)
keras
package in R (using reticulate), you might have some problems like the one in the snapshot.It means there is not
tensorflow
package in Python: you must installtensorflow
in your current environment in Anaconda. However, there are problems when installingtensorflow
in the base environment (default environment in Anaconda). Therefore, we highly recommend to set another environment to run Python scripts (and to usereticulate
in R).Once you've created an environmentenvironment (say "tenskeras" as an example). You must set the environment before using
reticulate
in R. It can be accomplished by typing in the R console before rendering the chapter.When setting the new environment (in our case, "tenskeras"), you must install the packages once again on this env.