# From pre-compiled wheels (Recommended)

You can find pre-compiled wheels at

> - CPU wheels: https://csukuangfj.github.io/kaldifeat/cpu.html

> - CUDA wheels: https://csukuangfj.github.io/kaldifeat/cuda.html

We give a few examples below to show you how to install kaldifeat from pre-compiled wheels.

## Linux (CPU)

Suppose you want to install the following wheel:

    https://huggingface.co/csukuangfj/kaldifeat/resolve/main/ubuntu-cpu/kaldifeat-1.25.4.dev20240210+cpu.torch2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

you can use one of the following methods:

    # method 1
    pip install torch==2.2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
    pip install kaldifeat==1.25.4.dev20240210+cpu.torch2.2.0 -f https://csukuangfj.github.io/kaldifeat/cpu.html

    # method 2
    pip install torch==2.2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
    wget https://huggingface.co/csukuangfj/kaldifeat/resolve/main/ubuntu-cpu/kaldifeat-1.25.4.dev20240210+cpu.torch2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
    pip install ./kaldifeat-1.25.4.dev20240210+cpu.torch2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

## Windows (CPU)

Suppose you want to install the following wheel:

    https://huggingface.co/csukuangfj/kaldifeat/resolve/main/windows-cpu/kaldifeat-1.25.4.dev20240210+cpu.torch2.2.0-cp312-cp312-win_amd64.whl

you can use one of the following methods:

    # method 1
    pip install torch==2.2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
    pip install kaldifeat==1.25.4.dev20240210+cpu.torch2.2.0 -f https://csukuangfj.github.io/kaldifeat/cpu.html

    # method 2
    pip install torch==2.2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
    wget https://huggingface.co/csukuangfj/kaldifeat/resolve/main/windows-cpu/kaldifeat-1.25.4.dev20240210+cpu.torch2.2.0-cp312-cp312-win_amd64.whl
    pip install ./kaldifeat-1.25.4.dev20240210+cpu.torch2.2.0-cp312-cp312-win_amd64.whl

## macOS (CPU)

Suppose you want to install the following wheel:

    https://huggingface.co/csukuangfj/kaldifeat/resolve/main/macos/kaldifeat-1.25.4.dev20240210+cpu.torch2.2.0-cp312-cp312-macosx_12_0_universal2.whl

you can use one of the following methods:

    # method 1
    pip install torch==2.2.0
    pip install kaldifeat==1.25.4.dev20240210+cpu.torch2.2.0 -f https://csukuangfj.github.io/kaldifeat/cpu.html

    # method 2
    pip install torch==2.2.0 -f https://download.pytorch.org/whl/torch_stable.html
    wget https://huggingface.co/csukuangfj/kaldifeat/resolve/main/macos/kaldifeat-1.25.4.dev20240210+cpu.torch2.2.0-cp312-cp312-macosx_12_0_universal2.whl
    pip install ./kaldifeat-1.25.4.dev20240210+cpu.torch2.2.0-cp312-cp312-macosx_12_0_universal2.whl

## Linux (CUDA)

Suppose you want to install the following wheel:

    https://huggingface.co/csukuangfj/kaldifeat/resolve/main/ubuntu-cuda/kaldifeat-1.25.4.dev20240210+cuda12.1.torch2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

you can use one of the following methods:

    # method 1
    pip install torch==2.2.0+cu121 -f https://download.pytorch.org/whl/torch_stable.html
    pip install kaldifeat==1.25.4.dev20240210+cuda12.1.torch2.2.0 -f https://csukuangfj.github.io/kaldifeat/cuda.html

    # method 2
    pip install torch==2.2.0+cu121 -f https://download.pytorch.org/whl/torch_stable.html
    wget https://huggingface.co/csukuangfj/kaldifeat/resolve/main/ubuntu-cuda/kaldifeat-1.25.4.dev20240210+cuda12.1.torch2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
    pip install ./kaldifeat-1.25.4.dev20240210+cuda12.1.torch2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl