Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/306.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通知R包keras Python的正确位置_Python_R_Keras - Fatal编程技术网

通知R包keras Python的正确位置

通知R包keras Python的正确位置,python,r,keras,Python,R,Keras,我在R 3.3.3 Windows 64位中安装了keras和TensorFlow,如下所示: devtools::install_github("rstudio/keras") library(keras) install_tensorflow() 它从未问过我Python的位置。Python的正确位置在我的PATH和PYTHONPATHasD:/Python35/中 但是,当我使用keras函数时 model <- keras_model_sequential() 模型这一点描述

我在R 3.3.3 Windows 64位中安装了keras和TensorFlow,如下所示:

devtools::install_github("rstudio/keras")
library(keras)
install_tensorflow()
它从未问过我Python的位置。Python的正确位置在我的
PATH
PYTHONPATH
as
D:/Python35/

但是,当我使用
keras
函数时

model <- keras_model_sequential() 

模型这一点描述得很好

您可以使用:

library(reticulate)
use_python("D:/Python35/")
并将
networkite_PYTHON
环境变量设置为
D:/Python35