Python GDAL 库离线安装
离线包下载地址(https://github.com/cgohlke/geospatial-wheels/releases)
下载的时候选择与Python版本、操作系统对应的whl。
比如我的电脑是Windows11 64位、Python3.11.0,所以要下载的安装文件为GDAL-3.8.2-cp311-cp311-win_amd64.whl,其中:
3.8.2表示的是GDAL的版本
cp311就是Python3.11的意思
win_amd64对应的是操作系统
通过pip安装
pip install F:\gdaldemo\GDAL-3.8.2-cp311-cp311-win_amd64.wh
或者在conda
环境中安装
conda install F:\gdaldemo\GDAL-3.8.2-cp311-cp311-win_amd64.wh