我一直在尝试在 R 中启动
keras
包:
library(reticulate)
virtualenv_create("r-reticulate",
python = virtualenv_starter())
library(keras)
install_keras(envname = "r-reticulate")
但是,此代码会引发错误:
ERROR: Could not find a version that satisfies the requirement tensorflow==2.15.* (from versions: none)
ERROR: No matching distribution found for tensorflow==2.15.*
Error: Error installing package(s): "'tensorflow==2.15.*'", "tensorflow-hub", "tensorflow-datasets", "scipy", "requests", "Pillow", "h5py", "pandas", "pydot"
我尝试过各种方法来解决它。
install_keras()
不断抛出错误。
pip install --upgrade tensorflow==2.15
返回
No matching distribution found for tensorflow==2.15
。
R版本4.3.3 (2024-02-29) 平台:aarch64-apple-darwin20(64位) 运行环境:macOS Big Sur 11.7.10