Skip to content

Latest commit

 

History

History
62 lines (48 loc) · 1.57 KB

网络设置.md

File metadata and controls

62 lines (48 loc) · 1.57 KB

1. 网络代理

clash需要开启系统代理(system),否则Map$addLayer无法显示图像。

  • 1. conda create env
conda create --name qgis --channel conda-forge mamba
mamba install geemap -c conda-forge
# 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")
  • 1. RStudio uses R.exe

#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"
  • 2. VScode uses radian.exe

// 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)