问题描述:安装rasterio前,登录https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib 下载了rasterio-1.2.10-cp37-cp37m-win_amd64.whl和GDAL-3.2.3-cp37-cp37m-win_amd64,安装了GDAL3.2.3后,再pip install rasterio-1.2.10-cp37-cp37m-win_amd64.whl,出错
ERROR: Failed building wheel for gdal
Running setup.py clean for gdal
Failed to build gdal
Installing collected packages: gdal, rasterio
Attempting uninstall: gdal
Found existing installation: gdal 3.2.3
Uninstalling gdal-3.2.3:
Successfully uninstalled gdal-3.2.3
Running setup.py install for gdal ... error
ERROR: Command errored out with exit status 1:
问题原因:GDAL和rasterio版本不匹配
解决办法:重新安装GDAL-3.3.3-cp37-cp37m-win_amd64.whl后,再安装rasterio-1.2.10-cp37-cp37m-win_amd64.whl。



