[英]Issues installing Geopandas
我試過pip install geopandas
當我運行它時,我收到此錯誤:
Collecting geopandas
Using cached geopandas-0.8.1-py2.py3-none-any.whl (962 kB)
Collecting pyproj>=2.2.0
Using cached pyproj-2.6.1.post1-cp37-cp37m-win_amd64.whl (17.2 MB)
Requirement already satisfied: pandas>=0.23.0 in c:\users\ryans\anaconda3\lib\site-packages (from geopandas) (1.0.1)
Collecting fiona
Using cached Fiona-1.8.17.tar.gz (1.3 MB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\ryans\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ryans\\AppData\\Local\\Temp\\pip-install-cw2z1439\\fiona\\setup.py'"'"'; __file__='"'"'C:\\Users\\ryans\\AppData\\Local\\Temp\\pip-install-cw2z1439\\fiona\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\ryans\AppData\Local\Temp\pip-install-cw2z1439\fiona\pip-egg-info'
cwd: C:\Users\ryans\AppData\Local\Temp\pip-install-cw2z1439\fiona\
Complete output (1 lines):
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.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
我也試過conda install -c conda-forge geopandas
在這種情況下,一切正常,但是當我嘗試運行這個單行程序時:
import geopandas as gpd
我得到這個結果:
ModuleNotFoundError: No module named 'geopandas'
我猜測與安裝的其他一些庫存在某種沖突,但這只是一個猜測,我不確定問題是什么。 我怎樣才能讓這件事發揮作用? 謝謝!!
你可以試試看
$ conda install -c anaconda pip
$ pip install geopandas
$ pip install Fiona
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.