clash需要开启系统代理(system),否则Map$addLayer无法显示图像。
- 1. conda create env
conda create --name qgis --channel conda-forge mamba
mamba install geemap -c conda-forge
- 2. 安装gcloud
环境变量 -> 用户 -> 新建
https_proxy
: "http://127.0.0.1:1081"https_proxy
: "http://127.0.0.1:1081"
# gcloud info --run-diagnostics
# C:/Users/kong/AppData/Roaming/gcloud/configurations/config_default
[proxy]
type = http
address = localhost
port = 1081
- R语言设置
The following solution not working. Because we need to set proxy before R start, other than after. See r-spatial/rgee#73 (comment) for details.
Sys.setenv(https_proxy="http://127.0.0.1:1081")
Sys.setenv(http_proxy="http://127.0.0.1:1081")
#subl "C:/Program Files/R/R-4.2.1/etc/Rcmd_environ"
http_proxy="http://127.0.0.1:1081"
https_proxy="http://127.0.0.1:1081"
// code .vscode/settings.json
{
"r.rterm.windows": "c:/ProgramData/Miniconda3/envs/gee/Scripts/radian.exe",
"terminal.integrated.env.windows": {
// "PATH": "${env:PATH}",
"http_proxy":"http://127.0.0.1:1081",
"https_proxy":"http://127.0.0.1:1081",
},
}
[Environment]::SetEnvironmentVariable("http_proxy", "http://127.0.0.1:1081", [System.EnvironmentVariableTarget]::User)
[Environment]::SetEnvironmentVariable("https_proxy", "http://127.0.0.1:1081", [System.EnvironmentVariableTarget]::User)