Installation Guide
alkaid is available on PyPI and can be installed with pip.
pip install alkaid
Requirements
Binary Wheels
python>=3.10numpy>=1.26.4quantizers>=1,<2Linux x86_64 or macOS ARM64
Building from Source
python>=3.10numpy>=2for the isolated build environmentmeson-python>=0.13.1A C++20 compliant compiler with OpenMP support
git clone https://github.com/calad0i/alkaid.git
pip install ./alkaid
For an editable development install, disable build isolation so meson-python can rebuild the in-place extension when it is imported:
pip install --no-build-isolation -e '.[tests]'
Documentation dependencies are available through the docs extra:
pip install 'alkaid[docs]'
The XLS backend imports xls-python. It is included in the test extra but should be installed separately for normal XLS use:
pip install xls-python
Alternatively, you can configure and build alkaid with meson directly:
meson setup build/cp31*
meson compile -C build/cp31*
Warning
If you are building an editable installation, --no-build-isolation must be used. Editable installation with meson-python relies on dynamic build hooks to recompile the C++ extension in place; build isolation breaks those hooks and can cause ninja to fail when alkaid is imported. Install meson-python in the active environment before running the editable pip install.