Installing GDAL using pip

The Python Package Index (PyPI) also offers GDAL, meaning you can use pip to install it on your machine. The installation is similar to the conda installation procedure described earlier, but this time using the pip install command. Again, it is recommended to use a virtual environment when installing GDAL instead of a root installation that requires you to create path variables in your system environment setting if you're using Windows.

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.