【问题标题】:Trouble setting up Google Earth Engine API in RGEE package R. normalizePath cannot find python.exe在 RGEE 包 R 中设置 Google 地球引擎 API 时遇到问题。 normalizePath 找不到 python.exe
【发布时间】:2021-06-18 20:31:07
【问题描述】:

您好,我是 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 几次并再次尝试,但这个问题仍然存在。我将不胜感激有关如何进行的任何建议。

【问题讨论】:

    标签: python r api rgee


    【解决方案1】:

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

    py_install( "earthengine-api==0.1.277", "rgee")
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-07
      • 2021-07-24
      • 2016-08-04
      • 2021-09-25
      • 1970-01-01
      相关资源
      最近更新 更多