英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论