I'm developing a QGIS plugin and I would like to use arrow or requests packages as I'm used to manipulate dates and REST APIs.

QGIS does not come with these packages (at less arrow), so when I try to access my plugin in QGIS I've got :

"ImportError: No module named arrow"

How can I specify my requirements?


Thanks for the resources. I tried to use paver but it seems to be a bit painful to implement, for a non-expert developer, no?

Furthermore, by default, pip is not installed even with the OSGeo4W installer. Could you paver script works without it?

To install it, I followed these instructions and I produced a batch file (see below) but doesn't solve the admin rights problems:

@echo off
Title "PyPi in QGIS"
Echo "Adding 3rd party modules in QGIS"

REM securely download get-pip install script
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

REM install pip
python get-pip.py

REM install 3rd party modules
pip install --user arrow
pip install --user requests
pip install --user requests[security]

@echo on
  • 2
    To install into user python directory (no admin rights needed) you can add --user switch into your command: pip install --user arrow and etc. Jun 6 '17 at 7:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.