需要4个依赖,分别是 GDAL Fiona pyproj Shapely
其中GDAL Fiona 两个不能直接pip 安装
需要在下面网站上下载
https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal
https://www.lfd.uci.edu/~gohlke/pythonlibs/#fiona
注意 cp 39 对应的是python 版本 找到自己合适的版本下载即可。
然后使用本地安装
pip install D:\geopandas\GDAL-3.4.3-cp39-cp39-win_amd64.whl pip install D:\geopandas\Fiona-1.8.21-cp39-cp39-win_amd64.whl
接着在线安装其他依赖包和geopandas即可。
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyproj pip install -i https://pypi.tuna.tsinghua.edu.cn/simple Shapely pip install -i https://pypi.tuna.tsinghua.edu.cn/simple geopandas