1.命令行输入:pip debug --verbose
查看匹配的版本
2.下载.whl包
网址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal
3.安装
命令行进入安装包的路径。pip install 安装包
4.检验
命令行进入python
from osgeo import gdal
gdal.version
‘3.2.2’
参考:https://blog.csdn.net/happywlg123/article/details/107281936
https://www.cnblogs.com/mumu122GIS/p/11236694.html
https://blog.csdn.net/belong0204/article/details/70161344