Installing a second GDAL version using pip

If you have a Windows machine and already have a working version of GDAL on your machine, but would like to install an extra one using pip, you can use the following link to install the GDAL version of your choice and then run the following command from your activated virtual environment to install it correctly:

GDAL download repository: https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal

>> pip install path\to\GDAL‑2.1.3‑cp27‑cp27m‑win32.whl

GDAL-2.1.3-cp27m-win32.whl is the name of the downloaded GDAL repository.

Get Mastering Geospatial Analysis with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.