You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A fresh pip install sbi (v0.26.0) fails on macOS x86_64 (Intel Mac) due to a cascade of dependency conflicts rooted in pymc being a hard dependency.
Related: #1816 (arviz breaking changes), #1626 (numpy 2.0 problems). This issue is about the broader problem that pymc (and its heavy transitive deps) shouldn't be required for the common case.
Bug Description
A fresh
pip install sbi(v0.26.0) fails on macOS x86_64 (Intel Mac) due to a cascade of dependency conflicts rooted inpymcbeing a hard dependency.Related: #1816 (arviz breaking changes), #1626 (numpy 2.0 problems). This issue is about the broader problem that pymc (and its heavy transitive deps) shouldn't be required for the common case.
Steps to Reproduce
Failure 1: llvmlite build error
sbi -> arviz -> numba -> llvmlite, and llvmlite fails to build from source on macOS x86_64 (no pre-built wheel). This blocks installation entirely.
Failure 2: numpy 1.x vs 2.x conflict (after working around llvmlite)
Even after getting everything installed:
torch 2.2.2(latest available on x86_64 macOS via pip) was compiled against numpy 1.xpytensor >= 2.28(required bypymc >= 5.28) requires numpy 2.xFailure 3: Eager import of pymc blocks all of sbi
Even if a user only needs NPE (amortized inference, no MCMC),
from sbi.inference import NPEtriggers:So pymc is a hard runtime dependency for all users, not just those using PyMC-based MCMC.
Suggestion
pip install sbi[mcmc]). Most sbi users don't need PyMC-based samplers.import sbiworks without pymc installed.Environment