写在前面 国内的互联网环境 找点有用的东西比较难
为了给后来人点帮助 特此记录一下自己解决gdal安装过程中实际遇到问题和解决步骤
-----------------------------------------------------------------------------------------
在python环境下安装gdal时候大概率会遇到以下情况
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for gdal
Failed to build gdal
ERROR: Could not build wheels for gdal, which is required to install pyproject.toml-based projects
此时先查看自己的Python版本
然后去下载对应的wheel,该网址上有对应版本的供下载:Releases · cgohlke/geospatial-wheels · GitHub(3.9-3.12)
较低版本参考这一个:http://pypi.naturalcapitalproject.org/simple/gdal/index.html(2.7-3.8)
接下来就比较简单了