install-k2
A simple utility to automatically install the correct k2 wheel for your platform and environment.
Installation
pip install install-k2
Usage
After installation, you can run the installer using either command:
# Using hyphen (recommended)
install-k2
# Or using underscore
install_k2
Options
--dry-run: Show what would be installed without making changes
install-k2 --dry-run
What It Does
The installer automatically:
- Detects your operating system (Linux, macOS, Windows)
- Identifies your Python version
- Detects CUDA version (if available on Linux)
- Finds the appropriate PyTorch version
- Downloads and installs the compatible k2 wheel from official sources
Supported Platforms
- Linux: CPU and CUDA wheels
- macOS: CPU wheels (Intel and Apple Silicon)
- Windows: CPU wheels
Wheel Sources
The installer fetches wheels from official k2 repositories:
- Linux CUDA: https://k2-fsa.github.io/k2/installation/pre-compiled-cuda-wheels-linux/
- macOS CPU: https://k2-fsa.github.io/k2/installation/pre-compiled-cpu-wheels-macos/
- Windows CPU: https://k2-fsa.github.io/k2/installation/pre-compiled-cpu-wheels-windows/
Requirements
- Python 3.9 or higher
- PyTorch (automatically detected)
License
Apache License 2.0
Author
The Lattifai Development Team
Metadata
Release files for install-k2 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| install_k2-0.1.0.tar.gz | 9.8 kB | Details |
Release files / install_k2-0.1.0.tar.gz
| Download URL | install_k2-0.1.0.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31b9deb044a58b8469779da6cf667972e870c864dbc186babf7861e33d1e887b
|
|
BLAKE2b-256 checksum How to use checksums |
90ed35e2239b1763f01a195d27126a8038d4146a7a2fa2ad1ee97a9d6458ce62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2025.
Transparency log