尝试通过R内核在Google Cloud AI平台笔记本上使用install_tensorflow安装TensorFlow:
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 3
minor 6.1
year 2019
month 07
day 05
svn rev 76782
language R
version.string R version 3.6.1 (2019-07-05)
nickname Action of the Toes
我运行:
install.packages(c("tfestimators", "tfdatasets", "cloudml", "rjson"))
library(tfestimators) # used for creating tensorflow estimators
library(tfdatasets) # used for creating data input functions
library(cloudml) # used for training and deploying models to AI Platform
install_tensorflow()
我收到:
Error in virtualenv_install(envname, packages, ...): unused arguments (python_version = conda_python_version, pip = TRUE)Traceback:1. install_tensorflow()2. reticulate::py_install(packages = c(package, extra_packages), . envname = envname, method = method, conda = conda, python_version = conda_python_version, . pip = TRUE, ...)
install_tensorflow
中的method
参数可以选择安装方法:https://tensorflow.rstudio.com/tensorflow/articles/installation.html#installation-methods - Pauldevtools::install_github("rstudio/reticulate") devtools::install_github("rstudio/tensorflow") devtools::install_github("rstudio/keras")
- Julian