本文介紹了安裝 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 版本在蟒蛇的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!