Installation

PyTerrier is a declarative platform for building information retrieval pipelines and conducting experiemnts in Python.

Pre-requisites

PyTerrier requires Python 3.9 or newer. Java 11 or newer is required for some functionality. PyTerrier is natively supported on Linux, Mac OS X and Windows.

Installation

Installing PyTerrier is easy - it can be installed from the command-line using pip:

pip install 'pyterrier[all]' 
  1. python-terrier is a shortcut for pyterrier[all]

If you want a minimal installation without optional dependencies, you can install just the core package:

pip install pyterrier

Problems Installing? Check out the installation troubleshooting guide.

Running PyTerrier

Once installed, you can get going with PyTerrier just by importing it. It’s common to alias it as pt:

import pyterrier as pt