0

嗨,我是stackoverflow的新手,所以如果这是一个基本问题或者有关问题的信息不足,请提前道歉。

问题:我正在尝试在 R 中设置 RGEE 包。我已经安装了 rgee 和 reticulate 具有依赖关系的包。然后我跑了这条线。

ee_install(py_env = "rgee")

创建 Python 环境后,我收到此消息并选择继续。

rgee::ee_install want to store the environment variables: EARTHENGINE_PYTHON 
and EARTHENGINE_ENV in your .Renviron file to use the Python path:
C:\Users\XXXX\AppData\Local\r-miniconda\envs\rgee\python.exe in future sessions.

这将继续成功安装 earthengine-api 并建议重新启动。之后我收到此警告消息。

Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="C:\Users\XXXXX\.conda\envs\ee/python.exe": The system cannot find the file specified 

重新启动后,我运行这个:

Restarting R session...

> library(rgee)
> ee_check()
(*)  Python version
√ [Ok] C:/Users/XXXXX/AppData/Local/r-miniconda/envs/r-reticulate/python.exe v3.6
√ [X] earthengine-api not installed
Warning messages:
1: In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="C:\Users\XXXXX\.conda\envs\ee/python.exe": The system cannot find the file specified
2: In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="C:\Users\XXXXX\.conda\envs\ee/python.exe": The system cannot find the file specified
3: In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="C:\Users\XXXXX\.conda\envs\ee/python.exe": The system cannot find the file specified

不知道我哪里出错了。我已经重新启动了会话和 R 几次并再次尝试,但这个问题仍然存在。我将不胜感激有关如何进行的任何建议。

4

1 回答 1

0

如果您的文件夹名称包含空格,则问题会出现在那里。如果没有,您可以尝试手动安装 earth engine api:

py_install( "earthengine-api==0.1.277", "rgee")
于 2021-11-06T15:13:57.507 回答