Skip to main content

Prerequisites

Before installing Whisper, ensure your system meets these requirements:
  • Python: Version 3.8 or higher (3.8-3.13 supported)
  • PyTorch: Recent versions (developed with PyTorch 1.10.1+)
  • FFmpeg: Required for audio processing

Installation Steps

1

Install Whisper via pip

The easiest way to install Whisper is via pip. This will install the latest stable release:
The -U flag ensures you get the latest version if Whisper is already installed.

Alternative: Install from GitHub

To get the latest development version directly from the repository:
2

Install FFmpeg

FFmpeg is required for audio file processing. Install it using your system’s package manager:
Make sure FFmpeg is accessible from your command line by running ffmpeg -version after installation.
3

Verify Installation

Verify that Whisper is installed correctly:
You can also verify the installation in Python:
This should display a list of available model names without errors.

Dependencies

Whisper automatically installs the following Python dependencies:
  • more-itertools: Utilities for working with iterables
  • numba: JIT compiler for numerical functions
  • numpy: Numerical computing library
  • tiktoken: Fast tokenizer implementation by OpenAI
  • torch: PyTorch deep learning framework
  • tqdm: Progress bar library
  • triton: GPU programming (Linux x86_64 only)

Troubleshooting

If you see installation errors related to tiktoken, you may need to install Rust:
  1. Visit the Rust installation page
  2. Follow the installation instructions for your platform
  3. Configure your PATH:
  4. Retry the Whisper installation
If installation fails with No module named 'setuptools_rust', install it explicitly:
Then retry installing Whisper.
If you get an error that FFmpeg is not found:
  1. Verify FFmpeg is installed: ffmpeg -version
  2. Ensure FFmpeg is in your system PATH
  3. On Windows, you may need to restart your terminal or add FFmpeg to PATH manually
Whisper will automatically use CUDA if available. To verify GPU support:
If CUDA is not detected but you have an NVIDIA GPU, reinstall PyTorch with CUDA support following the PyTorch installation guide.
If you encounter SHA256 checksum errors when downloading models:
  1. Delete the cached model files in ~/.cache/whisper
  2. Retry loading the model
  3. Check your internet connection for stability
The models are downloaded on first use and cached locally for future use.

System Requirements by Model

Ensure your system has sufficient VRAM for your chosen model:
CPU inference is supported but will be significantly slower than GPU inference, especially for larger models.

Next Steps

Quickstart Guide

Start using Whisper with practical examples for both CLI and Python API