问题描述
安装 geopandas 时出现此错误.我一直在网上寻找它的解决方案,但他们都没有真正解释发生了什么以及如何解决它..这是完整的错误:
This error raised while installing geopandas. I've looking for its solution on the web, but none of them really explain what happened and how to solve it.. This is the full error:
Collecting geopandas Using cached http://www.51sjk.com/Upload/Articles/1/0/335/335648_20221101155936589.whl Requirement already satisfied: shapely in c:usersalvaroanaconda3envs fdeeplearninglibsite-packages (from geopandas) (1.6.4.post2) Requirement already satisfied: pandas in c:usersalvaroanaconda3envs fdeeplearninglibsite-packages (from geopandas) (0.20.3) Collecting fiona (from geopandas) Using cached http://www.51sjk.com/Upload/Articles/1/0/335/335648_20221101155957187.gz Complete output from command python setup.py egg_info: A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable. ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in C:UsersAlvaroAppDataLocalTemppip-install-oxgkjg8lfiona
推荐答案
pip install wheel pip install pipwin pipwin install numpy pipwin install pandas pipwin install shapely pipwin install gdal pipwin install fiona pipwin install pyproj pipwin install six pipwin install rtree pipwin install geopandas
这里是源链接:http://geopandas.org/install.html#installationhttps://pip.pypa.io/en/latest/user_guide/#installing-from-wheelshttps://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
如果还是有问题,可以考虑卸载上面的(pip卸载)重新安装.
If you still have problems, consider uninstalling the above (pip uninstall) and reinstalling.