嗨,我是stackoverflow的新手,所以如果这是一个基本的问题或者关于这个问题的信息不足,请提前道歉。
问题:我正在尝试在R中安装RGEE包。我已经安装了rgee和带有依赖项的网格化包。然后我运行了这行代码。
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几次,并再次尝试,但此问题仍然存在。如果有任何关于如何进行的建议,我将不胜感激。
发布于 2021-11-06 15:13:58
如果你的文件夹名称包含空格,问题就出在那里。如果没有,您可以尝试使用以下命令手动安装地球引擎api:
py_install( "earthengine-api==0.1.277", "rgee")https://stackoverflow.com/questions/68041127
复制相似问题