Installation¶
This guide covers different ways to install Playfast.
Requirements¶
- Python: 3.11 or higher (3.14 recommended for free-threading)
- Operating System: Linux, macOS, or Windows
- Optional: Rust 1.70+ (only for building from source)
Install from PyPI¶
Using UV (Recommended)¶
UV is a modern, extremely fast Python package manager:
Using pip¶
Using Poetry¶
Using pipenv¶
Install from Source¶
For development or to get the latest unreleased changes:
# Clone the repository
git clone https://github.com/mixL1nk/playfast.git
cd playfast
# Set Python version (optional, for free-threading)
uv python pin 3.14t
# Install dependencies
uv sync --all-extras
# Build the Rust extension
uv run maturin develop --release
Python 3.14 Free-Threading¶
For maximum performance, use Python 3.14 with free-threading enabled:
# Install Python 3.14t (free-threading build)
uv python install 3.14t
# Set it as the project Python version
uv python pin 3.14t
# Install playfast
uv pip install playfast
Why Free-Threading?¶
Python 3.14's free-threading (PEP 703) removes the Global Interpreter Lock (GIL), allowing:
- True parallel execution of Python threads
- Better utilization of multi-core CPUs
- 3-10x performance improvement for Playfast's workloads
Verify Installation¶
import playfast
print(f"Playfast version: {playfast.__version__}")
print(f"Free-threading: {playfast.is_free_threaded()}")
Troubleshooting¶
Windows: Microsoft Visual C++ Required¶
On Windows, you may need Microsoft Visual C++ 14.0 or greater:
- Download Build Tools for Visual Studio
- Install "Desktop development with C++"
- Restart your terminal
- Try installing again
macOS: Command Line Tools¶
Linux: Build Dependencies¶
Ubuntu/Debian¶
Fedora/CentOS/RHEL¶
Arch Linux¶
Import Error After Installation¶
If you get ModuleNotFoundError:
# Check if playfast is installed
python -m pip list | grep playfast
# Check Python environment
which python
python --version
# Reinstall
pip uninstall playfast
pip install playfast
Build Errors from Source¶
If building from source fails:
- Ensure Rust is installed:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustc --version
- Update Rust:
- Clean and rebuild:
Upgrading¶
Uninstalling¶
Next Steps¶
- Getting Started - First steps with Playfast
- Quick Start - Jump right in
- User Guide - Comprehensive documentation