Installing LensKit#
We distribute LensKit through both PyPI and Conda (in the conda-forge
channel).
Once you have installed LensKit, see Getting Started.
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:
https://pypi.lenskit.org/lenskit-dev/ (PyPI index)
https://prefix.dev/lenskit-dev/ (Conda channel)