Adding plugins with Python dependencies

While the most common and widely-used Python packages are shipped with QGIS, and they can be used by plugins without any additional actions, some QGIS plugins need third-party Python packages, which are not available with the default QGIS installation.

This recipe shows you how to add missing Python packages to the QGIS installation.

Getting ready

To follow this recipe, you may need administrator rights if you are a Windows user, and QGIS is installed in the system drive.

How to do it…

This steps will install pip — a Python package management tool:

  1. Download the get-pip.py file from https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py and save it somewhere on your hard drive, for example in D:\Downloads ...

Get QGIS: Becoming a GIS Power User 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.