Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.48 KB

Windows.md

File metadata and controls

38 lines (26 loc) · 1.48 KB

Installation with Pip on Windows Platform

Recommended way

download any depending packages (which can not be built on your machine)from https://www.lfd.uci.edu/~gohlke/pythonlibs/ and install with pip

Alternative

GDAL

  • Find the release packages
  • Thre are three components necessary
    • Core (e.g. gdal-302-1916-x64-core.msi)
    • Python binding (e.g. GDAL-3.2.2.win-amd64-py3.7.msi), otherwise use pip install GDAL instead
    • Compiled libraries and headers (e.g. release-XXXX-XXX-gdal-XXX-libs.zip)

After running Core and Pythoin binding installers, make sure the environment variables are set properly like this:

GDAL_DATA        -> C:\Program Files\GDAL
GDAL_DRIVER_PATH -> C:\Program Files\GDAL\gdalplugins
GDAL_VERSION     -> 3.2.2
PATH             -> C:\Program Files\GDAL;C:\Program Files\GDAL\gdal-data;...

rasterio and etc

rasterio can be tricky to install.

  • at first pip install all modules required by rasterio. A list of requirement can be shown with pip show rasterio
  • Follow the instruction to install rasterio from source
  • clone rasterio from https://github.com/mapbox/rasterio and switch to release tag (e.g. 1.2.3)
  • $ python setup.py build_ext -I<path to gdal include files> -lgdal_i -L<path to gdal library> install

wms-tile-get

pip install wms-tile-get