I am trying to install tensorflow in R. I am able to install tensorflow package through github devtools::install_github("rstudio/tensorflow"). But when i am trying to install the tensorflow by using
install_tensorflow() function, I am encountering with the following error.
library(tensorflow)
reticulate::use_python("/opt/local/tools/python/Python-3.6.3/bin/python3.6")
install_tensorflow()
Error: Prerequisites for installing TensorFlow not available.
Please install the following Python packages before proceeding: pip, virtualenv
Does this error means to install the pip, virtualenv packages in R or it should be installed in python version. This packages are already installed in our python which is installed under /opt/local/tools/python/Python-3.6.3/bin/python3.6
The default system level python is installed under /usr/bin/python .
Could anyone help me how to get resolve this error ?
Are you on linux system? In that case the below may help which is taken from a Docker file that installs R Tensorflow, and if you are say on MacOS then it should at least point you in the right direction, but I guess you need homebrew or similar: