Dependencies¶
Project-specific dependencies¶
When we introduced Kedro, we touched briefly on how to specify a project’s dependencies to make it easier for others to run your project and avoid version conflicts downstream.
You can add or remove dependencies. For a new project, edit src/requirements.txt
and then run the following:
kedro build-reqs
The build-reqs
command will pip compile the requirements listed in src/requirements.txt
into a src/requirements.lock
that specifies a list of pinned project dependencies (those with a strict version).
Note
src/requirements.txt
contains “source” requirements, while src/requirements.lock
contains the compiled version of those and requires no manual updates.
To further update the project requirements, you should modify src/requirements.txt
(not src/requirements.lock
) and re-run kedro build-reqs
.
Install project-specific dependencies¶
To install the project-specific dependencies, navigate to the root directory of the project and run:
pip install -r src/requirements.txt