我在r中安装了tensorflow几次,但是建模顺序部分不起作用。建模部分显示安装错误。如何用r语言解决问题?
install_tensorflow()
library(keras)
library(tensorflow)
model <- keras_model_sequential()
model%>%layer_flatten(input_shape = c(lookback / step, dim(data)[-1])) %>%
layer_dense(units = 32, activation = "relu") %>%
layer_dense(units = 1)
Error: Installation of TensorFlow not found.
Python environments searched for 'tensorflow' package:
C:\Users\NIE12\AppData\Local\conda\conda\envs\r-tensorflow\python.exe
C:\Python27\python.exe
C:\Python27\python.exe
C:\ProgramData\Anaconda3\python.exe
C:\ProgramData\Anaconda3\python.exe
C:\Users\NIE12\AppData\Local\conda\conda\envs\TensorFlowEnv\python.exe
You can install TensorFlow using the install_tensorflow() function.