简体   繁体   中英

Why am getting error on installation of geopandas, Cartopy, Proj?

When I am trying to install Cartopy keep getting below error:

 C:\Users\Justin\Documents\Python Programs>pip install cartopy Collecting cartopy Using cached
> https://files.pythonhosted.org/packages/e5/92/fe8838fa8158931906dfc4f16c5c1436b3dd2daf83592645b179581403ad/Cartopy-0.17.0.tar.gz
> Installing build dependencies ... done
>     Complete output from command python setup.py egg_info:
>     C:\Users\Justin\AppData\Local\Temp\pip-install-cetb0vj7\cartopy\setup.py:171:
> UserWarning: Unable to determine GEOS version. Ensure you have 3.3.3
> or later installed, or installation may fail.
>       '.'.join(str(v) for v in GEOS_MIN_VERSION), ))
>     Proj 4.9.0 must be installed.
> 
>     ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in
> C:\Users\Justin\AppData\Local\Temp\pip-install-cetb0vj7\cartopy\

Try executing these line by line in the terminal window instead of downloading the .whl file externally. Moreover, earlier I tried with external source, and due to that mass up happend. Hence, I would recommend to go with pipwin install .

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM