download any depending packages (which can not be built on your machine)from https://www.lfd.uci.edu/~gohlke/pythonlibs/ and install with pip
- 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 usepip install GDAL
instead - Compiled libraries and headers (e.g.
release-XXXX-XXX-gdal-XXX-libs.zip
)
- Core (e.g.
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
can be tricky to install.
- at first
pip install
all modules required byrasterio
. A list of requirement can be shown withpip show rasterio
- Follow the instruction to install
rasterio
from source - clone
rasterio
fromhttps://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
pip install wms-tile-get