快速安装
洛 2021/10/29
# 依赖环境
系统环境
操作系统:64 位 (amd64) Windows 、Linux及以上
内存:8 GB 及以上
注意:gma 目前不支持 MacOS 和其他平台。
Python 环境
Windows: 3.8 ~ 3.11
Linux: 3.9~3.11
建议安装 Anaconda 创建 Python 环境。 Anaconda 是一个开源的 Python 发行版本,其包含了 180 多个科学包及其依赖项。
# 依赖库
gma 的构建依赖 gdal 3.4.1 +,numpy 1.23.3 +,pandas 1.4.2 +,scipy1.7.3 +,matplotlib3.5.2 + 等库,这些库是 gma 实现功能的基础。 注意:为了保证 gdal 的完整安装,Windows 下建议下载编译后相应版本的 whl 包手动安装。
打开 Windows 终端(或CMD、PowerShell、conda
等且已配置系统变量),使用以下命令安装 gdal (默认 Python 环境):
pip install "X:\GDAL-3.4.1-cp39-cp39-win_amd64.whl"
1
或使用 conda 安装:
conda install gdal
1
# 安装
gma 已经发布至 pypi (opens new window),可以在终端输入以下命令安装:
pip install gma
1
在安装 gma 时,依赖的 numpy,pandas 和 scipy 等库如果不存在则会自动安装(需联网)。