在 RGEE 包 R 中设置 Google Earth Engine API 时遇到问题 normalizePath 找不到 python.exe

问题描述

嗨,我是 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),mustWork) :
  path[1]="C:\Users\XXXXX\.conda\envs\ee/python.exe": The system cannot find the file specified
2: In normalizePath(path.expand(path),mustWork) :
  path[1]="C:\Users\XXXXX\.conda\envs\ee/python.exe": The system cannot find the file specified
3: In normalizePath(path.expand(path),mustWork) :
  path[1]="C:\Users\XXXXX\.conda\envs\ee/python.exe": The system cannot find the file specified

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

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)