Registry / ai-ml / theano

theano

JSON →
library1.0.5pypypiunverified

Theano is a Python library that allows you to define, optimize, and evaluate mathematical expressions involving multi-dimensional arrays efficiently, with support for CPUs and GPUs. It was a pioneering library for deep learning but is now in maintenance mode; the latest version is 1.0.5. The project is no longer actively developed, and users are encouraged to migrate to alternatives like TensorFlow, PyTorch, or JAX.

pip install theano
INSTALL
IMPORT
SIG · THEANO
T
theano
ai-mlpythonv1.0.5
Install
10.2s avg
Import
3540ms
Disk
254MB
Pass rate
6/ 10
Env Coverage6 / 10
glibc
3.93.13
musl
3.93.13
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
musl
glibc
py 3.10
✓ —
✓ 9.6s
py 3.11
✓ —
✓ 9.6s
py 3.12
✕ build_error
✕ build_error
py 3.13
✕ build_error
✕ build_error
py 3.9
✓ —
✓ 11.4s
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.
fix
Consider 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.
fix
Use 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+.
fix
Use 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
Agent activity
17 hits · last 30 days
node
16
OpenAI (training)
1
Resources
theano — pip install theano · libregistry