安装 geopandas 时出错:"必须指定 GDAL API 版本在蟒蛇

Error installing geopandas:quot; A GDAL API version must be specified quot; in Anaconda(安装 geopandas 时出错:必须指定 GDAL API 版本在蟒蛇)
本文介绍了安装 geopandas 时出错:"必须指定 GDAL API 版本在蟒蛇的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

安装 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 https://files.pythonhosted.org/packages/24/11/d77c157c16909bd77557d00798b05a5b6615ed60acb5900fbe6a65d35e93/geopandas-0.4.0-py2.py3-none-any.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 https://files.pythonhosted.org/packages/3a/16/84960540e9fce61d767fd2f0f1d95f4c63e99ab5d8fddc308e8b51b059b8/Fiona-1.8.4.tar.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.

这篇关于安装 geopandas 时出错:"必须指定 GDAL API 版本在蟒蛇的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

python arbitrarily incrementing an iterator inside a loop(python在循环内任意递增迭代器)
Joining a set of ordered-integer yielding Python iterators(加入一组产生 Python 迭代器的有序整数)
Iterating over dictionary items(), values(), keys() in Python 3(在 Python 3 中迭代字典 items()、values()、keys())
What is the Perl version of a Python iterator?(Python 迭代器的 Perl 版本是什么?)
How to create a generator/iterator with the Python C API?(如何使用 Python C API 创建生成器/迭代器?)
Python generator behaviour(Python 生成器行为)