Installing LensKit#

We distribute LensKit through both PyPI and Conda (in the conda-forge channel).

Once you have installed LensKit, see Getting Started.

Tip

Python Version

LensKit follows SPEC0 for its supported Python versions (see Dependency Versioning for details). However, for best results, we recommend Python 3.14 with free-threading enabled (uv venv -p 3.14t), unless you need to use Ray.

Pip and uv#

LensKit is distributed on PyPI in both source and binary formats. You can use use pip to install LensKit in a standard Python environment, such as a virtual environment:

pip install lenskit

We recommend using uv, though:

uv pip install lenskit

To add LensKit as a dependency to your project’s pyproject.toml and virtual environment:

uv add lenskit

Conda and Pixi#

You can also install LensKit from conda-forge, using Pixi:

pixi add lenskit

Or conda:

conda install -c conda-forge lenskit

Development Versions#

Our CI pipeline regularly builds development versions of LensKit as both wheels and Conda packages. These can be installed from: