rstudio / reticulate

R Interface to Python
https://rstudio.github.io/reticulate
Apache License 2.0
1.67k stars 327 forks source link

Installing miniconda on Raspberry Pi #1611

Open neuwirthe opened 4 months ago

neuwirthe commented 4 months ago

When trying to usr install_miniconda on a Raspberry pi, it does not work because the installer aarch64 is not yet supported on repo.anaconda.com.miniconda

There are 2 possible solutions.
The brute force one is setting options(reticulate.miniconda.url="https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh")

One also could add a pice of code in fuction miniconda_installer_url: directly after

if (info$sysname == "Darwin" && info$machine == "arm64") {
    base <- "https://github.com/conda-forge/miniforge/releases/latest/download"
    name <- "Miniforge3-MacOSX-arm64.sh"
    return(file.path(base, name))
  }

add

if (info$sysname == "Linux" && (info$machine == "arm64" | info$machine == "aarch64") {
    base <- "https://github.com/conda-forge/miniforge/releases/latest/download"
    name <- "Miniforge3-Linux-aarch64.sh"
    return(file.path(base, name))
  }

Possibly this works for all aarch64 Linux machines.

t-kalinowski commented 4 months ago

Would you like to submit a PR?

neuwirthe commented 4 months ago

I have not done that before and have to learn how to do it

On May 20, 2024, at 2:08 PM, Tomasz Kalinowski @.***> wrote:

Would you like to submit a PR? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>