Install scikit-link
scikit-link needs Python 3.12 or later, and the tutorials also need pandas. Install it from PyPI with pip.
Install for the tutorials
Run this command in the Python environment you will use for the examples.
python -m pip install "scikit-link[pandas]"If you prefer to try the package in a browser, the quickstart notebook in Colab includes its own setup.
Other table formats
For Polars or PyArrow, replace [pandas] in the command with [polars] or [pyarrow]. If you pass dictionaries of NumPy columns, you can omit the extra. NumPy, SciPy, scikit-learn and Numba install with the package.
Check the installation
In a Python session or notebook using the same environment, import the package as sklink and display the installed versions.
import sklink
sklink.show_versions()Continue with the shop quickstart. If the import fails in a notebook, check that its kernel uses the environment where you ran pip.
Faster trees, forests and boosting
Nothing to install: Numba comes with the package and compiles the inner loops of relational trees, forests and gradient boosting. The models and predictions are exactly the same as with the NumPy loops. The first fit in a new environment compiles the loops once and caches them on disk. Each worker process loads Numba once, which takes about a second and 100 MB. For a small forest fitted with n_jobs, that cost can outweigh the speedup; sklink.set_config(tree_kernels="numpy") skips Numba.
Intel Macs and Python versions that Numba does not support yet install the package without it and use the NumPy loops, as do free-threaded Python builds. On free-threaded Python 3.13, where Numba has no wheels, pip tries to build it from source; install Numba's build requirements first, or install with pip install --no-deps scikit-link and then its other dependencies. See fit faster for the other ways to save time.