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 sympyVerified import paths — ran on the pinned version, not inferred.
A simple example to define symbols, create an equation, and solve for a variable using SymPy.
Ensure Python version is 3.9 or higher, as SymPy 1.14.0 requires Python >=3.9.
Avoid naming your script 'sympy.py' to prevent shadowing the SymPy library.
It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv