[英]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.