Installation¶
pip¶
uv¶
conda / pixi (conda-forge)¶
Optional: GPU-accelerated video I/O¶
torchcodec enables faster video decoding via FFmpeg. pip wheels are Linux-only; on Windows install via conda/pixi (conda-forge provides Windows CUDA builds):
# pip / uv (Linux only)
pip install "pyeulervid[fast-io]"
uv add "pyeulervid[fast-io]"
# conda-forge — works on Windows + Linux + macOS
conda install -c conda-forge pyevm # torchcodec is included automatically
pixi add pyevm
Hardware¶
pyevm automatically selects the best available compute device:
- CUDA — NVIDIA GPU
- MPS — Apple Silicon GPU
- CPU — fallback
Override with --device cuda, --device mps, or --device cpu.
Requirements¶
- Python 3.12 or later
- PyTorch 2.2 or later