[英]Trouble setting up Google Earth Engine API in RGEE package R. normalizePath cannot find 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), 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 几次并再次尝试,但这个问题仍然存在。 我将不胜感激有关如何进行的任何建议。
如果您的文件夹名称包含空格,则问题就在那里。 如果没有,您可以尝试使用以下命令手动安装地球引擎 api:
py_install( "earthengine-api==0.1.277", "rgee")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.