无法在 Apple Mac M2 上安装 R conda 包。

huangapple go评论126阅读模式
英文:

Cannot install R conda packages on Apple Mac M2

问题

我似乎无法安装R conda包,尽管它在conda上可用。

例如,r-raster

$ mamba install -c conda-forge r-raster

正在查找: ['r-raster']

conda-forge/osx-arm64                                       使用缓存
conda-forge/noarch                                          使用缓存

已固定的软件包:
  - python 3.11.*

无法解决环境规范
无法安装以下软件包

非R软件包似乎可以正常安装。我漏掉了什么吗?

R版本 4.2.2 (2022-10-31)
平台:aarch64-apple-darwin20.0.0 (64位)
运行环境:macOS Ventura 13.5

conda 23.5.0
英文:

I can't seem to install R conda packages although it is available on conda.

For example, r-raster;

$ mamba install -c conda-forge r-raster

Looking for: ['r-raster']

conda-forge/osx-arm64                                       Using cache
conda-forge/noarch                                          Using cache

Pinned packages:
  - python 3.11.*


Could not solve for environment specs
The following package could not be installed

Non R packages seem to install fine. Am I missing something?

R version 4.2.2 (2022-10-31)
Platform: aarch64-apple-darwin20.0.0 (64-bit)
Running under: macOS Ventura 13.5

conda 23.5.0

答案1

得分: 1

The r-raster builds for osx-arm64 depend on r-terra, which has unresolved issues building. Until that is fixed, Conda Forge cannot provide r-raster for osx-arm64. I happen to be one of the maintainers on it, but simply don't have the time to spend on patching the autoconf script to support cross-compilation. If anyone wants to help get that build working, please send a PR.

In the meantime, one can also emulate osx-64 environments, as indicated in this answer. For example, something like

CONDA_SUBDIR=osx-64 conda create -n foo r-base=4.2 r-raster

英文:

The r-raster builds for osx-arm64 depend on r-terra, which has unresolved issues building. Until that is fixed, Conda Forge cannot provide r-raster for osx-arm64. I happen to be one of the maintainers on it, but simply don't have the time to spend on patching the autoconf script to supporting cross-compilation. If anyone wants to help get that build working, please send a PR.

In the meantime, one can also emulate osx-64 environments, as indicated in this answer. For example, something like

CONDA_SUBDIR=osx-64 conda create -n foo r-base=4.2 r-raster

huangapple
  • 本文由 发表于 2023年8月4日 23:30:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/76837329.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定