skillfed

Theano

Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs.

theano v1.0.5 168.5K downloads/30d#10,445 on PyPI
Permissive license BSD Abandoned released

What it is and what it does

Theano is a compiler for mathematical expressions that translates high-level symbolic descriptions into optimized CPU or GPU code. It combines a NumPy-like interface with automatic differentiation and dynamic C code generation, historically used for large-scale scientific computing and machine learning research since 2007.

The package is now abandoned and has received no updates since July 2020. While it was groundbreaking for its time, the deep learning ecosystem has moved toward actively maintained alternatives. Installing Theano today carries significant risk: compilation may fail on modern systems, GPU support may not work with current hardware drivers, and NumPy compatibility is uncertain. It should only be considered for maintaining legacy codebases, not for new projects.

Use it for:

  • Maintaining or running legacy research code or academic projects built on Theano before 2020
  • Understanding historical approaches to symbolic differentiation and GPU-accelerated computing in machine learning
  • Educational exploration of how mathematical expression compilers work, using classroom examples from that era

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Theano is a Python library for defining, optimizing, and evaluating mathematical expressions on CPUs and GPUs, with symbolic differentiation and tight NumPy integration.

No. Theano is abandoned (last release July 2020, 2209 days ago) with no maintenance. High install friction, uncertain NumPy compatibility, and no active support make it unsuitable for new projects. Install only if required to run existing legacy code, and expect significant friction on modern systems.

Install

theano on PyPI

pip

pip install theano

uv

uv add theano

poetry

poetry add theano

Installing Theano

Before you install

High install friction due to compilation requirements and system dependencies. The package is abandoned as of 2020 with no active maintenance, making it unsuitable for new projects despite its historical significance.

License in practice

BSD permissive license allows commercial and private use with minimal restrictions, but the abandoned status means no ongoing legal or security updates.

Quickstart

import theano
import theano.tensor as T
x = T.dscalar('x')
y = T.sin(x)
f = theano.function([x], y)

Requires C compiler, BLAS library, and NumPy. GPU support requires CUDA/cuDNN. No active maintenance since 2020.

Verify before relying

  • Current compatibility with modern Python versions beyond 3.8 and modern NumPy releases
  • Whether GPU support (CUDA/cuDNN) still functions with current hardware and driver versions
  • Availability and stability of system-level compilation dependencies on modern systems

Package facts

License BSD (permissive)
Python support not specified
Install friction high — source build required
Runtime dependencies none
Maintenance abandoned — 2,209 days since the last release
First released
Downloads 168,498/month — #10,445 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: Theano-1.0.5.tar.gz

Keywords: theano, math, numerical, symbolic, blas, numpy, gpu, autodiff, differentiation

Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Topic :: Scientific/Engineering :: MathematicsTopic :: Software Development :: Code GeneratorsTopic :: Software Development :: Compilers

Tags

symbolic math computationGPU-accelerated numerical computingautomatic differentiationmathematical expression compilerNumPy-based tensor operationsscientific computing frameworkdeep learning math library
abandonedlegacygpu-computing

More Mathematics packages