SymPy: Computer Algebra System in Python
raw JSON → 1.14.0 verified Tue May 12 auth: no python install: verified quickstart: verified
SymPy is a Python library for symbolic mathematics, enabling exact computation with algebraic expressions, calculus, matrices, and equations. The current version is 1.14.0, released on March 28, 2026, with a regular release cadence of approximately every 6 months.
pip install sympy Warnings
breaking ImportError: cannot import name 'Type' from 'typing' ↓
fix Ensure Python version is 3.9 or higher, as SymPy 1.14.0 requires Python >=3.9.
gotcha ImportError: cannot import name 'Symbol' from 'sympy.core.symbol' ↓
fix Avoid naming your script 'sympy.py' to prevent shadowing the SymPy library.
gotcha Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. ↓
fix It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Install compatibility verified last tested: 2026-05-12
python os / libc status wheel install import disk
3.10 alpine (musl) - - 0.92s 78.1M
3.10 slim (glibc) - - 0.61s 79M
3.11 alpine (musl) - - 1.09s 104.4M
3.11 slim (glibc) - - 0.94s 105M
3.12 alpine (musl) - - 0.94s 90.3M
3.12 slim (glibc) - - 1.10s 91M
3.13 alpine (musl) - - 0.84s 89.4M
3.13 slim (glibc) - - 0.92s 90M
3.9 alpine (musl) - - 0.80s 77.8M
3.9 slim (glibc) - - 0.76s 78M
Imports
- Symbol
from sympy import Symbol
Quickstart verified last tested: 2026-04-23
from sympy import symbols, Eq, solve
# Define symbols
x, y = symbols('x y')
# Define an equation
equation = Eq(x + y, 10)
# Solve the equation
solution = solve(equation, x)
print(solution)