Registry / data / sympy
library1.14.0pypypi✓ verified 24d ago

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
INSTALL
IMPORT
SIG · SYMPY
S
sympy
datapythonv1.14.0
Install
6.4s avg
Import
874ms
Disk
88MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.14.0 · 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
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.878s · 78.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 6.4s · import 0.870s · 79MB
88MB installed
● package 88MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Symbol
from sympy import Symbol
Ensure 'sympy' is not shadowed by a local file named 'sympy.py' to avoid import errors.

A simple example to define symbols, create an equation, and solve for a variable using SymPy.

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)
Debug
Known issues
breakingImportError: cannot import name 'Type' from 'typing'
fix
Ensure Python version is 3.9 or higher, as SymPy 1.14.0 requires Python >=3.9.
affects: 1.14.0
gotchaImportError: cannot import name 'Symbol' from 'sympy.core.symbol'
fix
Avoid naming your script 'sympy.py' to prevent shadowing the SymPy library.
affects: 1.14.0
gotchaRunning 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
affects: *
Upgrade
Version history
1.14.0latest on PyPI · released Apr 27, 2025
Audit
Dependencies
mpmathrequiredRequired for arbitrary precision arithmetic in SymPy
Agent activity
13 hits · last 30 days
node
10
OpenAI (training)
1
Resources
sympy — pip install sympy · libregistry