[Python] How to properly install rgee?

Discussão em 'Python' iniciado por Stack, Julho 17, 2025.

  1. Stack

    Stack Membro Participativo

    I first created an account and a project with Google Earth Engine.

    Then I installed and loaded the rgee package:

    install.packages("rgee")
    library(rgee)


    I checked if python is installed:

    > reticulate::py_available()
    [1] FALSE


    And installed it on my system:

    > reticulate::py_discover_config()
    python: /usr/bin/python
    libpython: /usr/lib64/libpython3.13.so.1.0
    pythonhome: //usr://usr
    version: 3.13.5 (main, Jun 12 2025, 00:00:00) [GCC 15.1.1 20250521 (Red Hat 15.1.1-2)]
    numpy: /usr/lib64/python3.13/site-packages/numpy
    numpy_version: 2.2.6
    ee: /home/saidmaanan/.local/lib/python3.13/site-packages/ee

    NOTE: Python version was forced by use_python() function
    > rgee::ee_install_set_pyenv(py_path = "/usr/bin/python", py_env = "rgee")
    EARTHENGINE_PYTHON='/usr/bin/python'
    EARTHENGINE_ENV='rgee'
    saved in: /home/saidmaanan/.Renviron
    Do you want restart your R session? Windows users could need to terminate R instead of restarting.

    1: yes
    2: no

    Selection: 1
    Restarting R session...
    >


    I checked if everything is installed properly, and it gave me this:

    > rgee::ee_check()
    ◉ Python version
    ✔ [Ok] /usr/bin/python v3.13
    Error in strsplit(a, "[.-]") : non-character argument


    What is the cause of this error? And how do I address it?

    Here is some information about my machine:

    [​IMG]

    Continue reading...

Compartilhe esta Página