我正在尝试绘制具有多个图层的地图。但是,当选择我想要在 controlLayer 面板中显示的组时,它会更改地图,但不会更改图例。事实上,这两个图例总是一起显示在地图上,但我一次只想要其中一个。
\n这是我使用的代码:
\nleaflet(data) %>%\n addProviderTiles("Esri.WorldStreetMap") %>%\n addRasterImage(r, opacity = 1, colors = cb, group = "Predictions") %>%\n addLegend(pal = cb, values = wind_speed_range, title = "Wind Speed", opacity = 1, group = "Predictions", position = "topright") %>%\n addCircles(radius = ~ residual*7000, color = "black", fillColor = ~ cb(predictions), fillOpacity = 1, label = ~ paste(as.character(residual), " / ", as.character(vitesse_vent), " / ", as.character(predictions)), weight = 2, group = "Predictions") %>%\n addRasterImage(raster_difference, opacity = 1, colors = …Run Code Online (Sandbox Code Playgroud) 我正在尝试在运行 Amazon Linux 2023 AMI 的 Amazon EC2 实例上安装 mysqlclient Python 包。
\n当我运行时pip install mysqlclient,我收到以下错误消息:
Collecting mysqlclient==2.1.0\n Downloading mysqlclient-2.1.0.tar.gz (87 kB)\n \xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81 87.6/87.6 kB 17.2 MB/s eta 0:00:00\n Preparing metadata (setup.py) ... error\n error: subprocess-exited-with-error\n\n \xc3\x97 python setup.py egg_info did not run successfully.\n \xe2\x94\x82 exit code: 1\n \xe2\x95\xb0\xe2\x94\x80> [16 lines of output]\n /bin/sh: line 1: mysql_config: command not found\n /bin/sh: line 1: mariadb_config: command not found\n /bin/sh: line 1: mysql_config: command not found\n Traceback (most recent …Run Code Online (Sandbox Code Playgroud)