# gdal-wheel
**Repository Path**: lujiecan/gdal-wheel
## Basic Information
- **Project Name**: gdal-wheel
- **Description**: python gdal 已编辑好的 wheel 安装包。 由于 linux 系统版本下载源不稳定,创建一个仓库方便下载。
- **Primary Language**: Unknown
- **License**: MulanPSL-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2023-07-11
- **Last Updated**: 2023-07-11
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# gdal-wheel
#### 介绍
python gdal 已编辑好的 wheel 安装包。 由于 linux 系统版本下载源不稳定,创建一个仓库方便下载。
注:
- Linux 版本的 whl 文件中没有包含 gdal-utils 库,需要使用的话要另外安装(要与 gdal 库版本一致, 直接 pip 安装即可)。
> 来源:
> - linux 系统:https://sourceforge.net/projects/gdal-wheels-for-linux/files/
> - windows 系统:https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal
#### 使用说明
下载链接如:
https://gitee.com/lujiecan/gdal-wheel/releases/download/v1.0.0/GDAL-3.4.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
1. 手动下载对应版本的 whl 文件, 然后通过 `pip install GDAL-3.4.1-xxx.whl` 命令安装。
2. 将下载链接添加到 requirements.txt 文件, 通过 `pip install -r requirements.txt` 命令直接和其他依赖一起安装。
添加到 requirements.txt 文件的格式如下:
```requirements.txt
gdal @ https://gitee.com/lujiecan/gdal-wheel/releases/download/v1.0.0/GDAL-3.4.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl ; platform_system=='Linux' and python_version=='3.9'
gdal @ https://gitee.com/lujiecan/gdal-wheel/releases/download/v1.0.0/GDAL-3.4.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl ; platform_system=='Linux' and python_version=='3.8'
gdal @ https://gitee.com/lujiecan/gdal-wheel/releases/download/v1.0.0/GDAL-3.4.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl ; platform_system=='Linux' and python_version=='3.7'
gdal @ https://gitee.com/lujiecan/gdal-wheel/releases/download/v1.0.0/GDAL-3.4.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl ; platform_system=='Linux' and python_version=='3.7'
gdal-utils==3.4.1; platform_system=="Linux"
```