Install & Compatibility
Where this runs
tested against v0.8.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.252s · 89.4MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.5s · import 0.260s · 86MB
89MB installed
● package 89MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
alpha
✓ from krippendorff import alpha
✗ from krippendorff.alpha import alpha
alpha is a top-level function, not a submodule.
Compute Krippendorff's alpha for nominal data with missing values.
import numpy as np
from krippendorff import alpha
# Reliability data: 3 coders, 4 units, with a missing value (np.nan)
reliability_data = np.array([
[1, 2, 3, np.nan],
[1, 2, 3, 4],
[2, 2, 3, 4]
])
result = alpha(reliability_data, level_of_measurement='nominal')
print(f"Krippendorff's alpha: {result}")
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'krippendorff'
Package not installed or installed under a different name (e.g., 'fast-krippendorff').
fixRun: pip install krippendorff
ValueError: A single coder was provided (or all units have less than 2 coders).
Reliability data matrix has only one non-NaN entry per unit, or only one coder overall.
fixProvide data from at least two coders; ensure each unit has annotations from at least two coders.
TypeError: 'numpy.float64' object is not iterable
Calling alpha on a 1D array instead of 2D (coders x units).
fixEnsure the input is a 2D numpy array with shape (n_coders, n_units).
Upgrade
Version history
0.8.2latest on PyPI · released Nov 3, 2025
Audit
Dependencies
numpyrequiredCore dependency for array operations and distance functions.