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 root of your project.
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 in the project:
Copied
1
/
2
requirements.txt
3
pip.conf
4
airplane_tasks/
5
my_task.py
6
other_module/
7
__init__.py
8
other_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.