我正在使用Pydroid3,并且想在Pydroid Terminal中使用Git。
在我的Termux终端中,我可以按以下说明安装Git:Python and Git on Android
现在只能在Termux终端中识别git命令,而在Pydroid中则无法识别:(。无法在pydroid终端中安装带有apt-get的Git。
有人设法为Pydroid安装Git吗?
答案 0 :(得分:0)
这对我有用;如果出现问题,您可能需要调整 curl 或配置命令。我暂时没有研究过 ssh,只研究过 https。
setwd(path_LU_fut)
for(period in periods) {
cat("\n ========> PERIOD ",period, "<======== \n")
#read netcdf file#
eval(parse(text = paste0("ras_",period," = brick()")))
ncpath = "/home/joanpere/Modelling_data/path_LU_fut/"
ncname = paste0("GCAM_Demeter_LU_O_ssp5_rcp85_miroc_", period)
ncfname = paste(ncpath, ncname, ".nc", sep = "")
#separate for variables, crop and scale#
for(varis in vari) {
eval(parse(text = paste0("ras_",period,"_",varis," = brick()")))
ras = brick(ncfname, varname = varis)
#import files by category#
if(period == 2015) {
ras_2015_forest = stack(paste0("ras_",period,"_PFT",1:8))
ras_2015_RID = stack(paste0("ras_",period,"_PFT12"), paste0("ras_",period,"_PFT31"))
ras_2015_crop = stack(paste0("ras_",period,"_PFT",15:30))
ras_2015_no_forest = stack(paste0("ras_",period,"_PFT",9:14))
}
}
}