首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在RGEE包R中设置Google Earth引擎API时出现问题。normalizePath找不到python.exe

在RGEE包R中设置Google Earth引擎API时出现问题。normalizePath找不到python.exe
EN

Stack Overflow用户
提问于 2021-06-19 04:31:08
回答 1查看 125关注 0票数 0

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

问题:我正在尝试在R中安装RGEE包。我已经安装了rgee和带有依赖项的网格化包。然后我运行了这行代码。

代码语言:javascript
复制
ee_install(py_env = "rgee")

在创建Python环境之后,我收到了这条消息,并选择继续。

代码语言:javascript
复制
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,并建议重新启动。之后我会收到这条警告信息。

代码语言:javascript
复制
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 

重新启动后,我运行以下命令:

代码语言:javascript
复制
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几次,并再次尝试,但此问题仍然存在。如果有任何关于如何进行的建议,我将不胜感激。

EN

回答 1

Stack Overflow用户

发布于 2021-11-06 15:13:58

如果你的文件夹名称包含空格,问题就出在那里。如果没有,您可以尝试使用以下命令手动安装地球引擎api:

代码语言:javascript
复制
py_install( "earthengine-api==0.1.277", "rgee")
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68041127

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档