Error: Valid installation of TensorFlow not found.

Python environments searched for 'tensorflow' package:
 C:\Users\CRAN\Documents\.virtualenvs\r-reticulate\Scripts\python.exe

Python exception encountered:
 Traceback (most recent call last):
  File "D:\RCompile\CRANpkg\lib\4.6\reticulate\python\rpytools\loader.py", line 122, in _find_and_load_hook
    return _run_hook(name, _hook)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "D:\RCompile\CRANpkg\lib\4.6\reticulate\python\rpytools\loader.py", line 96, in _run_hook
    module = hook()
             ^^^^^^
  File "D:\RCompile\CRANpkg\lib\4.6\reticulate\python\rpytools\loader.py", line 120, in _hook
    return _find_and_load(name, import_)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'tensorflow'


You can install TensorFlow using the install_tensorflow() function.

y <- sin(x1) + ifelse(x2 > 0, pweibull(x2, shape = 3),
list_of_deep_models <- list(mod1 = ONAM:::get_submodel)
regexp = "Feature\\(s\\) x5 in formula, but not present in data. Make sure the features align with colnames\\(data\\).",
regexp = "Model formula contains model mod4, but mod4 is not supplied in 'list_of_deep_models'.",
regexp = "x5 provided in categorical_features, but not present in data. Make sure the features align with colnames\\(data\\).",
regexp = "Features in lower order effects do not appear in higher order effects. We recommend fitting a residual term that includes all lower order terms.",
regexp = "Feature\\(s\\) x4 stated as categorical, but not present in model formula.",
"x4 is not present in the fitted model effects.")
"x3_x1 is not present in the fitted model effects.")

"Feature\\(s\\) x5 in formula, but not present in data. Make sure the features align with colnames\\(data\\)."
"Model formula contains model mod4, but mod4 is not supplied in 'list_of_deep_models'."
"x5 provided in categorical_features, but not present in data. Make sure the features align with colnames\\(data\\)."
"Features in lower order effects do not appear in higher order effects. We recommend fitting a residual term that includes all lower order terms."
"Feature\\(s\\) x4 stated as categorical, but not present in model formula."
"x4 is not present in the fitted model effects."
"x3_x1 is not present in the fitted model effects."