Installation¶
Requirements¶
- Python: >= 3.11, < 3.15
- C++ Compiler (source builds only): C++14 compatible (gcc, clang, MSVC)
- Eigen (source builds only): Linear algebra library (version 3.x)
- Matplotlib (optional): install via
pip install vbpca_py[plot]
From PyPI (recommended)¶
Pre-built wheels are available for Python 3.11–3.14 on Linux x86_64, macOS arm64, and Windows amd64:
With plotting support:
From source¶
Building from source requires Eigen and a C++14-compatible compiler.
Source checkouts can carry an unreleased .dev version while a release is
being prepared. Use a release tag to reproduce a published version. During
development, the citation identifies the most recent stable release; it does
not assign a publication date to unfinished work.
Install Eigen¶
Download from eigen.tuxfamily.org and set:
Eigen is located automatically via EIGEN_INCLUDE_DIR, $CONDA_PREFIX/include/eigen3,
/opt/homebrew/include/eigen3, /usr/include/eigen3, or /usr/local/include/eigen3.
Build and install¶
Optional extras¶
# Development tools (pytest, ruff, mypy, just)
pip install .[dev]
# Plotting utilities (matplotlib)
pip install .[plot]
# Optional data utilities (pandas)
pip install .[data]
# Analysis dependencies (matplotlib, pandas, scikit-learn)
pip install .[analysis]
# Benchmark + plotting stack (joblib, pandas, scikit-learn, seaborn)
pip install .[benchmark]
# Documentation (mkdocs-material, mkdocstrings)
pip install .[docs]
# Install everything
pip install .[dev,plot,data,benchmark,docs]
Using uv¶
uv is the recommended environment manager for development:
# Core developer environment
uv sync --extra dev --extra data
# Include benchmark + plotting
uv sync --extra dev --extra data --extra benchmark
# Include Octave Python bridge (optional)
uv sync --extra dev --extra data --extra benchmark --extra octave
0.5 dependency boundary¶
Native estimators require scikit-learn >=1.8 at runtime. Minimum and current
versions are qualified separately. Python remains >=3.11,<3.15. The optional
no-op estimator fallback has been removed. Low-level pca_full retains its
feature-first numerical interface; importing the package requires the declared
runtime dependencies. See the migration guide.