M1mac(macOS Monterey12.3)でminiforgeを使ってPythonやRの環境構築を行いました。そこで、jupyterlabでRのパッケージであるtidyverseをインストールしようとし、
install.packages("tidyverse”)やinstall.packages("tidyverse", dependencies = TRUE)を実行したのですが、
Warning message in install.packages("tidyverse"): “installation of package ‘fs’ had non-zero exit status” Warning message in install.packages("tidyverse"): “installation of package ‘sass’ had non-zero exit status” Warning message in install.packages("tidyverse"): “installation of package ‘gargle’ had non-zero exit status” Warning message in install.packages("tidyverse"): “installation of package ‘bslib’ had non-zero exit status” Warning message in install.packages("tidyverse"): “installation of package ‘googledrive’ had non-zero exit status” Warning message in install.packages("tidyverse"): “installation of package ‘rmarkdown’ had non-zero exit status” Warning message in install.packages("tidyverse"): “installation of package ‘googlesheets4’ had non-zero exit status” Warning message in install.packages("tidyverse"): “installation of package ‘reprex’ had non-zero exit status” Warning message in install.packages("tidyverse"): “installation of package ‘tidyverse’ had non-zero exit status” Updating HTML index of packages in '.Library' Making 'packages.html' ... done
となってしまい、‘sass’, ‘bslib’, ‘gargle’, ‘fs’, ‘rmarkdown’, ‘googledrive’, ‘googlesheets4’, ‘reprex’がインストールできませんでした。
library(tidyverse)を実行しても
Error in library(tidyverse): ‘tidyverse’ という名前のパッケージはありません Traceback: 1. library(tidyverse)
となってしまい、tidyverseが見つからないようです。
ターミナルを確認したのですが、
Invalid configuration `arm64-apple-darwin20.0.0': machine `arm64-apple' not recognized configure: error: /bin/sh ./config.sub arm64-apple-darwin20.0.0 failed make: *** [Makevars:31: libuv-1.38.1/Makefile] Error 1 ERROR: compilation failed for package ‘fs’ * removing ‘/Users/miniforge3/envs/ds_env/lib/R/library/fs’ ERROR: dependency ‘fs’ is not available for package ‘sass’ * removing ‘/Users/miniforge3/envs/ds_env/lib/R/library/sass’ ERROR: dependency ‘fs’ is not available for package ‘gargle’ * removing ‘/Users/miniforge3/envs/ds_env/lib/R/library/gargle’ ERROR: dependency ‘sass’ is not available for package ‘bslib’ * removing ‘/Users/miniforge3/envs/ds_env/lib/R/library/bslib’ ERROR: dependency ‘gargle’ is not available for package ‘googledrive’ * removing ‘/Users/miniforge3/envs/ds_env/lib/R/library/googledrive’ ERROR: dependencies ‘gargle’, ‘googledrive’ are not available for package ‘googlesheets4’ * removing ‘/Users/miniforge3/envs/ds_env/lib/R/library/googlesheets4’ ERROR: dependency ‘bslib’ is not available for package ‘rmarkdown’ * removing ‘/Users/miniforge3/envs/ds_env/lib/R/library/rmarkdown’ ERROR: dependencies ‘fs’, ‘rmarkdown’ are not available for package ‘reprex’ * removing ‘/Users/miniforge3/envs/ds_env/lib/R/library/reprex’ ERROR: dependencies ‘googledrive’, ‘googlesheets4’, ‘reprex’ are not available for package ‘tidyverse’ * removing ‘/Users/miniforge3/envs/ds_env/lib/R/library/tidyverse’
と記載がありました。
どうすればjupyterlab(構築した環境)にtidyverseをインストールできますか。
もしくは、M1macには対応していないのでしょうか?
回答1件
あなたの回答
tips
プレビュー