Skip to content

Installation Issue: Keras3 #1526

@Amaizescience

Description

@Amaizescience
  1. When I tried to download keras3::install_keras, most files downloaded. But there were some errors (See the error message below), and I noticed that a r-tensorflow was not created in the document folder.
    Do you have any suggestions to solve this? (I have most recent version of Microsoft Visual C++ Redistributable for Visual Studio. Also, I checked that there is no python.exe in App execution aliases.)
keras3::install_keras(
  envname = "r-keras",
  python_version = "3.10",
  backend = "tensorflow",
  extra_packages = c("scipy", "pandas", "Pillow", "pydot", "tensorflow_datasets"  ))

_**__**Warning messages:
  1: In file.info(x, extra_cols = FALSE) :
  cannot open file 'C:/Users/scibe/AppData/Local/Microsoft/WindowsApps/python3.exe': The file cannot be accessed by the system
2: In file.info(x, extra_cols = FALSE) :
  cannot open file 'C:/Users/scibe/AppData/Local/Microsoft/WindowsApps/python.exe': The file cannot be accessed by the system**__**_
  1. I also tried the recommended installation method: 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.packages("remotes")
remotes::install_github(sprintf("rstudio/%s", c("reticulate", "tensorflow", "keras")))

**_**Warning messages: 
warning messages:
1: In missing_devel_warning(pkgdir) :
  Package reticulate has compiled code, but no suitable compiler(s) were found. Installation will likely fail.
  Install Rtools (https://cran.r-project.org/bin/windows/Rtools/).Then use the pkgbuild package, or make sure that Rtools in the PATH.
2: In i.p(...) :
  installation of package ‘C:/Users/scibe/AppData/Local/Temp/RtmpCMOgLO/file4f1013bf1d50/reticulate_1.44.1.9000.tar.gz’ had non-zero exit status_**


if (is.null(reticulate::virtualenv_starter()))
  reticulate::install_python()
keras3::install_keras()

**_**Warning messages:
1: In file.info(x, extra_cols = FALSE) :
  cannot open file 'C:/Users/scibe/AppData/Local/Microsoft/WindowsApps/python3.exe': The file cannot be accessed by the system
2: In file.info(x, extra_cols = FALSE) :
  cannot open file 'C:/Users/scibe/AppData/Local/Microsoft/WindowsApps/python.exe': The file cannot be accessed by the system_**

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions