/compat/numpy/numpy-python-versions
NumPy versions and supported Python versions (2.0 to 2.5)
The commands on this page have not been executed by our verification runner yet.updated 2026-10-20
- tool
- NumPy
- versions
- NumPy 2.0 – 2.5
- os
- any
Each NumPy release supports a window of about three Python versions. NumPy 2.5 supports Python 3.12 to 3.14; to run NumPy on Python 3.11 you need NumPy 2.4 or older, and on Python 3.10 NumPy 2.2 or older. pip picks the newest NumPy that publishes wheels for your Python automatically.
Support table
From the official release notes of each version:
| NumPy | Supported Python versions |
|---|---|
| 2.5 | 3.12 – 3.14 |
| 2.4 | 3.11 – 3.14 |
| 2.3 | 3.11 – 3.13 (3.14 supported once released) |
| 2.2 | 3.10 – 3.13 |
| 2.1 | 3.10 – 3.13 |
| 2.0 | 3.9 – 3.12 |
NumPy follows the Scientific Python ecosystem's SPEC 0 policy: support for a Python version is dropped about three years after its release.
Check what you have
python -c "import sys, numpy; print('Python', sys.version.split()[0], '/ NumPy', numpy.__version__)"Pin for older Pythons
numpy<2.5; python_version < "3.12"
numpy<2.3; python_version < "3.11"Environment markers like these keep one requirements file valid across several Python versions.
Sources
Related pages
errors · numpyValueError: operands could not be broadcast together with shapesNumPy raises operands could not be broadcast together when array shapes are incompatible. Compare shapes from the right: each pair must be equal or 1.changes · pandaspandas 2 to 3: Copy-on-Write, the str dtype and other breaking changespandas 3.0 makes Copy-on-Write the only mode, infers strings as the new str dtype, drops SettingWithCopyWarning and needs Python 3.11+. Shown side by side.compat · pythonPython version support and end-of-life datesWhich Python versions are supported in October 2026: 3.14 and 3.15 get bugfixes, 3.11 to 3.13 get security fixes only, 3.10 reached end of life on 2026-10-01.