Install & Compatibility
Where this runs
tested against v1.0.5 · 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.12
✕ build_error
✕ build_error
py 3.13
✕ build_error
✕ build_error
254MB installed
● package 254MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
theano
✓ import theano
✗ import theano.tensor as T
Common pattern but not the top-level import; it's fine to use theano.tensor directly.
Basic symbolic addition using Theano's tensor module.
import theano
import theano.tensor as T
# Define symbolic variables
x = T.dscalar('x')
y = T.dscalar('y')
# Define expression
z = x + y
# Compile function
f = theano.function([x, y], z)
# Execute
print(f(1.5, 2.5)) # Output: 4.0
Debug
Known issues
gotchaTheano is no longer actively maintained; the latest release (1.0.5) is from 2021. It may not work with newer Python versions (>=3.10) or modern CUDA toolkits.fixConsider migrating to PyTorch, TensorFlow, or JAX for active development and support.
affects: >=1.0.0
breakingPython 3.9 support was dropped in Theano 1.0.5; Python 3.10+ may not be fully compatible. Expect import errors with older Theano versions on newer Python.fixUse Python 3.8 or 3.9, or upgrade to Theano 1.0.5 and check compatibility.
affects: <=1.0.4 on Python 3.10+
deprecatedTheano's GPU backend (pygpu) is deprecated and may not work with CUDA 11+.fixUse CPU only or migrate to a library with active GPU support.
affects: all
Upgrade
Version history
1.0.5latest on PyPI · released Jul 27, 2020
Audit
Dependencies
numpyrequiredCore dependency for array operations
scipyoptionalUsed for some linear algebra routines
pygpuoptionalGPU backend support