Closed chaosssss123 closed 1 year ago
Hi , many thanks for your help, reallya prpeciated.
I tried the code you showed me but it fails again. R studio just crashes while installing keras or/amd tensorflow and there is a message saying that R has experience a fatal error and it just crashes. then i have to re-install both R and R studio to be able to re-open R studio. Please see below details on the diagnostics:
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
reticulate::py_config() python: C:/Users/user1/Documents/.virtualenvs/r-tensorflow/Scripts/python.exe libpython: C:/Users/user1/AppData/Local/r-reticulate/r-reticulate/pyenv/pyenv-win/versions/3.9.13/python39.dll pythonhome: C:/Users/user1/Documents/.virtualenvs/r-tensorflow version: 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)] Architecture: 64bit numpy: [NOT FOUND] tensorflow: [NOT FOUND] NOTE: Python version was forced by import("tensorflow") > tensorflow::tf_config() Valid installation of TensorFlow not found. Python environments searched for 'tensorflow' package: C:\Users\user1\Documents\.virtualenvs\r-tensorflow\Scripts\python.exe Python exception encountered: Traceback (most recent call last): File "C:\Users\user1\AppData\Local\R\win-library\4.3\reticulate\python\rpytools\loader.py", line 119, in _find_and_load_hook return _run_hook(name, _hook) File "C:\Users\user1\AppData\Local\R\win-library\4.3\reticulate\python\rpytools\loader.py", line 93, in _run_hook module = hook() File "C:\Users\user1\AppData\Local\R\win-library\4.3\reticulate\python\rpytools\loader.py", line 117, in _hook return _find_and_load(name, import_) ModuleNotFoundError: No module named 'tensorflow' You can install TensorFlow using the install_tensorflow() function. > reticulate::import("tensorflow") Error in py_module_import(module, convert = convert) : ModuleNotFoundError: No module named 'tensorflow' Run `reticulate::py_last_error()` for details. > reticulate::py_last_error() ── Python Exception Message ───────────────────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last): File "C:\Users\user1\AppData\Local\R\win-library\4.3\reticulate\python\rpytools\loader.py", line 119, in _find_and_load_hook return _run_hook(name, _hook) File "C:\Users\user1\AppData\Local\R\win-library\4.3\reticulate\python\rpytools\loader.py", line 93, in _run_hook module = hook() File "C:\Users\user1\AppData\Local\R\win-library\4.3\reticulate\python\rpytools\loader.py", line 117, in _hook return _find_and_load(name, import_) ModuleNotFoundError: No module named 'tensorflow' ── R Traceback ────────────────────────────────────────────────────────────────────────────────────────────────────────── ▆ 1. └─reticulate::import("tensorflow") 2. └─reticulate:::py_module_import(module, convert = convert) > sessionInfo() R version 4.3.1 (2023-06-16 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19045) Matrix products: default locale: [1] LC_COLLATE=English_United Kingdom.utf8 LC_CTYPE=English_United Kingdom.utf8 [3] LC_MONETARY=English_United Kingdom.utf8 LC_NUMERIC=C [5] LC_TIME=English_United Kingdom.utf8 time zone: Europe/London tzcode source: internal attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] keras_2.13.0 reticulate_1.34.0 devtools_2.4.5 usethis_2.2.2 loaded via a namespace (and not attached): [1] rappdirs_0.3.3 generics_0.1.3 stringi_1.7.12 lattice_0.21-8 digest_0.6.33 [6] magrittr_2.0.3 grid_4.3.1 pkgload_1.3.3 fastmap_1.1.1 rprojroot_2.0.3 [11] jsonlite_1.8.7 Matrix_1.6-1.1 processx_3.8.2 whisker_0.4.1 pkgbuild_1.4.2 [16] sessioninfo_1.2.2 urlchecker_1.0.1 ps_1.7.5 tfruns_1.5.1 promises_1.2.1 [21] tensorflow_2.14.0.9000 purrr_1.0.2 cli_3.6.1 shiny_1.7.5 rlang_1.1.1 [26] crayon_1.5.2 pak_0.6.0 ellipsis_0.3.2 withr_2.5.1 remotes_2.4.2.1 [31] base64enc_0.1-3 cachem_1.0.8 tools_4.3.1 memoise_2.0.1 zeallot_0.1.0 [36] httpuv_1.6.11 here_1.0.1 curl_5.1.0 vctrs_0.6.4 R6_2.5.1 [41] mime_0.12 png_0.1-8 lifecycle_1.0.3 stringr_1.5.0 fs_1.6.3 [46] htmlwidgets_1.6.2 miniUI_0.1.1.1 desc_1.4.2 callr_3.7.3 later_1.3.1 [51] glue_1.6.2 profvis_0.3.8 Rcpp_1.0.11 rstudioapi_0.15.0 xtable_1.8-4 [56] htmltools_0.5.6.1 compiler_4.3.1 prettyunits_1.2.0 -- > | > >
When opening the issue you many have noticed the "Installation Issue Template" with instructions for what information to include when opening an installation issue: https://github.com/rstudio/tensorflow/blob/main/.github/ISSUE_TEMPLATE/installation-issue.md
Can you please fill out the template?