我正在尝试安装" GISTools"使用以下命令在IBM的数据科学体验(DSX)中使用R Jupyter笔记本中的R包:
install.packages("GISTools", depend = T)
但是,我收到以下错误消息:将包安装到
‘/gpfs/global_fs01/sym_shared/YPProdSpark/user/s17c-9f3318fc11f06c-d37a4b9405b6/R/libs’
(as ‘lib’ is unspecified)
also installing the dependency ‘rgeos’
Warning message in install.packages("GISTools", depend = T):
“installation of package ‘rgeos’ had non-zero exit status”Warning message in install.packages("GISTools", depend = T):
“installation of package ‘GISTools’ had non-zero exit status”
当我尝试library(GISTools)
命令时,收到以下错误消息:
Error in library(GISTools): there is no package called ‘GISTools’
Traceback:
1. library(GISTools)
2. stop(txt, domain = NA)
我特别关注了以下链接(以及Stack Overflow上的其他几个主题),但无法解决我的问题:
Cannot install R packages in Jupyter Notebook
conda - How to install R packages that are not available in "R-essentials"?
请有人帮忙吗?
谢谢, V
答案 0 :(得分:0)
GISTools依赖于R包rgeos。 现在安装rgeos需要安装GEOS。 https://cran.r-project.org/web/packages/rgeos/rgeos.pdf
我尝试在DSX上安装GEOS,似乎GEOS需要安装sudo权限才能作为用户在DSX上使用。 https://duntuk.com/how-install-geos-centos
“make [7]:对于'install-exec-am'没什么可做的。 test -z“/ usr / local / include / geos / algorithm / locate”|| / bin / mkdir -p“/ usr / local / include / geos / algorithm / locate” / bin / mkdir:无法创建目录'/ usr / local / include / geos':权限被拒绝 make [7]:*** [install-geosHEADERS]错误1“
您需要依靠DSX Team首先安装GEOS软件包,然后才能安装rgeos。
请提升uservoice以安装它,以便您可以安装rgeos然后安装GISTools。 https://datascix.uservoice.com/
希望有所帮助!!!
谢谢, 查尔斯。