Many installation issues are resolved by running the following in a fresh R session (you can restart R in Rstudio with Ctrl+Shift+F10) :
# install the development version of packages, in case the
# issue is already fixed but not on CRAN yet.
install.packages("pak")
pak::pak(sprintf("rstudio/%s", c("reticulate", "tensorflow", "keras")))
if (is.null(reticulate::virtualenv_starter()))
reticulate::install_python()
tensorflow::install_tensorflow()
Test to see if installation was successful.
tensorflow::as_tensor("Hello World")
If the above snippet succeeded and you saw something like tf.Tensor(b'Hello World', shape=(), dtype=string), then :tada:, you've successfully installed Tensorflow.
If the above installation failed, please gather some diagnostic info:
Please copy and paste the FULL OUTPUT of running all three snippets, and be sure to enclose the output lines with three backticks (```) for monospace formatting.
Many installation issues are resolved by running the following in a fresh R session (you can restart R in Rstudio with Ctrl+Shift+F10) :
Test to see if installation was successful.
If the above snippet succeeded and you saw something like
tf.Tensor(b'Hello World', shape=(), dtype=string)
, then :tada:, you've successfully installed Tensorflow.If the above installation failed, please gather some diagnostic info:
Please copy and paste the FULL OUTPUT of running all three snippets, and be sure to enclose the output lines with three backticks (```) for monospace formatting.