Python dependencies
Install dependencies
To install dependencies, you can add them to a requirements.txt
file, and Airplane will
pip install
from it when deploying.
You should place this requirements.txt
file either next to your script or in a parent directory.
The closest directory containing requirements.txt
becomes the task root—the task root is
uploaded when deploying.
If you want to import from other modules, ensure that the requirements.txt
is placed in a place
where the other modules will get included:
Copied1/2requirements.txt3pip.conf4airplane_tasks/5my_task.py6other_module/7__init__.py8other_submodule.py
Customize pip
If you need a custom pip configuration, you can also create a pip.conf
file in the same directory
as the requirements.txt
file, and Airplane will use that pip.conf
file when executing
pip install
.