Install & Compatibility
Where this runs
tested against v0.1.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
py 3.10
✕ build_error
✕ build_error
py 3.11
✕ build_error
✓ 12s
py 3.12
✕ build_error
✓ 12.7s
py 3.13
✕ build_error
✓ 13s
py 3.9
✕ build_error
✕ build_error
446MB installed
● package 446MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Normal
✓ from pytensor_distributions import Normal
✗ from pytensor_distributions.distributions import Normal
Define a Normal distribution and compute log-probability.
import pytensor
import pytensor.tensor as pt
from pytensor_distributions.distributions import Normal
x = pt.dmatrix('x')
mu = pt.dvector('mu')
sigma = pt.dscalar('sigma')
dist = Normal.dist(mu, sigma)
logp = dist.log_prob(x)
# Evaluate
f = pytensor.function([x, mu, sigma], logp)
print(f([[1.0, 2.0], [3.0, 4.0]], [0.0, 1.0], 0.5))
Upgrade
Version history
0.2.0latest on PyPI · released Jun 8, 2026
Audit
Dependencies
pytensorrequiredCore computation engine for tensor operations and automatic differentiation.
scipyrequiredProvides numerical constants and special functions used in distribution implementations.