Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems installing trensorflow #835

Closed
juliavassey opened this issue Jul 9, 2019 · 3 comments
Closed

problems installing trensorflow #835

juliavassey opened this issue Jul 9, 2019 · 3 comments

Comments

@juliavassey
Copy link

Hi everyone,

This issue was opened earlier but was closed by a collaborator.

I'm having problems installing tensorflow and appreciate if you let me know which commands do I need out of this list. I tried everything from here and tensorflow is still not being detected, although library(tensorflow) and library(keras) give no errors.

install.packages("devtools")

library(devtools)
devtools::install_github("rstudio/tensorflow", dependencies = FALSE)
devtools::install_github("rstudio/keras", dependencies = FALSE)

devtools::install_github("rstudio/reticulate", force = TRUE)
library(reticulate)

install.packages("keras")
install.packages("tensorflow")

#install_tensorflow()
install_keras()
install_tensorflow()

library(tensorflow)
library(keras)

install_tensorflow(version = "1.12")

install_keras(method  = "conda")

use_condaenv("r-tensorflow")

tensorflow::tf_config()

install_tensorflow(method = "conda")

install.packages("h5py")
library(h5py)

the last package install.packages("h5py") I was not able to instal and was not able to load the keras model.

@dfalbel
Copy link
Member

dfalbel commented Jul 10, 2019

Complete installation instructions are available here: https://tensorflow.rstudio.com/tensorflow/articles/installation.html

If you still have errors, please let me know the error messages you see so we can point to possible solutions.

@faltinl
Copy link

faltinl commented Jan 21, 2020

Following these instructions, I still have recurring problems getting tensorflow installed and working. Here are the error messages.

@t-kalinowski
Copy link
Member

Hello,

The code that installs tensorflow and keras has been refactored.
Please update to the latest versions of reticulate, tensorflow, and keras:

install.packages("remotes")
remotes::install_github(paste0("rstudio/", c("reticulate", "tensorflow", "keras")))
reticulate::install_miniconda() # skip this if you want to self-install conda or use venv
keras::install_keras()

Please let us know if after updating you are still encountering installation issues:
https://github.com/rstudio/tensorflow/issues/new

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants