我正在尝试安装TensorFlow for R,到目前为止,我已经按照以下步骤操作:
devtools::install_github("rstudio/tensorflow"
工作正常library(tensorflow)
install_tensorflow()
这时我得到了这个错误
HTTP error 404 while getting https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.9.0-cp37-cp37m-linux_x86_64.whl
Could not install requirement tensorflow==1.9.0 from https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.9.0-cp37-cp37m-linux_x86_64.whl because of error 404 Client Error: Not Found for url: https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.9.0-cp37-cp37m-linux_x86_64.whl
Could not install requirement tensorflow==1.9.0 from https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.9.0-cp37-cp37m-linux_x86_64.whl because of HTTP error 404 Client Error: Not Found for url: https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.9.0-cp37-cp37m-linux_x86_64.whl for URL https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.9.0-cp37-cp37m-linux_x86_64.whl
You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Errore: Error 1 occurred installing packages into conda environment r-tensorflow
似乎R会尝试通过安装python版本3.7
来安装Tensorflow,而此软件包当前不支持该版本(仅3.6
以下)。
是否可以强制install_tensorflow
使用较早的python版本?
P.S。我看到有可能使用虚拟环境,但我对它们不熟悉。