Requirements
Before installing FastF1, ensure you have:- Python 3.10 or higher
- pip or conda package manager
Installation Methods
- pip
- conda
- PyPI Wheel
The recommended method is to install FastF1 using pip:This will install FastF1 and all required dependencies.
Dependencies
FastF1 automatically installs the following core dependencies:- pandas (≥2.1.1): DataFrame functionality
- numpy (≥1.26.0): Numerical operations
- matplotlib (≥3.8.0): Plotting and visualization
- requests (≥2.30.0): HTTP requests
- requests-cache (≥1.0.0): HTTP response caching
- scipy (≥1.11.0): Scientific computing
cryptography, platformdirs, pydantic, pyjwt, python-dateutil, signalrcore, rapidfuzz, timple, and websockets.
For the complete and current list of dependency version requirements, refer to the
dependencies section in pyproject.toml.Configuring the Cache
FastF1 uses a two-stage caching system to store API responses and parsed data. Configure the cache immediately after importing FastF1:Cache Directory Options
The cache directory is determined by the following precedence:- Explicit configuration via
Cache.enable_cache() - Environment variable
FASTF1_CACHE - OS-specific default location:
- Windows:
%LOCALAPPDATA%\Temp\fastf1 - macOS:
~/Library/Caches/fastf1 - Linux:
~/.cache/fastf1(or~/.fastf1if~/.cachedoesn’t exist)
- Windows:
Cache Configuration Example
Advanced Cache Options
Theenable_cache() method supports additional parameters:
Verifying Installation
Verify that FastF1 is installed correctly:Special Environments
Pyodide and WASM
FastF1 has limited compatibility with Pyodide, JupyterLite, and other WASM-based environments. Installation requires additional steps:JupyterLite FastF1 Guide
External repository with installation instructions and examples for WASM environments
Troubleshooting
Cache Directory Not Found
If you seeNotADirectoryError: Cache directory does not exist!, create the directory first:
Module Import Errors
Ensure all dependencies are installed correctly:Next Steps
Quickstart Guide
Learn how to load session data and access telemetry with a complete working example
