Change8

NumPy

Data & ML

The fundamental package for scientific computing with Python.

Latest: v2.4.216 releases2 breaking changes14 common errorsView on GitHub

Release History

v2.4.26 fixes1 feature
Feb 1, 2026

NumPy 2.4.2 is a patch release focused on bug fixes, including resolving memory leaks and updating OpenBLAS to prevent hangs. It also adds minor feature enhancements like datetime string acceptance in arange.

v2.4.1
Jan 10, 2026
v2.4.0Breaking4 features
Dec 20, 2025

NumPy 2.4.0 introduces improvements for free threaded Python support, user dtypes, and annotations, alongside removing many long-deprecated APIs and finalizing prior deprecations.

v2.4.0rc1Breaking4 features
Dec 3, 2025

NumPy 2.4.0 introduces annotation improvements, a new 'same_value' casting option, and several new APIs for user dtypes. This release also removes numerous long-deprecated features and enforces stricter behavior for scalar conversion.

v2.3.57 fixes1 feature
Nov 16, 2025

NumPy 2.3.5 is a patch release containing maintenance updates and numerous bug fixes, including improvements to string slicing and handling of INT_MIN negation.

v2.3.410 fixes
Oct 15, 2025

NumPy 2.3.4 is a patch release containing maintenance updates and numerous bug fixes, including changes to static library extensions on win-arm64 for MSVC compatibility.

v2.3.37 fixes2 features
Sep 9, 2025

NumPy 2.3.3 is a patch release focused on maintenance updates and bug fixes across various areas, including linear algebra, type casting, and build system improvements. It introduces a new `sorted` argument for `np.unique`.

v2.3.29 fixes1 feature
Jul 24, 2025

NumPy 2.3.2 is a patch release containing numerous bug fixes and maintenance updates, including support for Python 3.14.0rc1 wheels and updates to underlying libraries like PyPy and OpenBLAS.

v2.3.17 fixes1 feature
Jun 21, 2025

NumPy 2.3.1 is a patch release containing several bug fixes, annotation improvements, and enhanced CPU feature detection support for OpenBSD and FreeBSD.

v2.3.06 features
Jun 7, 2025

NumPy 2.3.0 introduces new features like string slicing and OpenMP support, alongside numerous expired deprecations being removed. This release focuses on improving free threaded Python support and code modernization.

v2.3.0rc16 features
May 25, 2025

NumPy 2.3.0 improves free threaded Python support and annotations, introduces the new numpy.strings.slice function, and removes numerous long-expired deprecations. This release also modernizes code style and upgrades binary compatibility tags to manylinux_2_28.

v2.2.64 fixes
May 17, 2025

NumPy 2.2.6 is a patch release focusing on bug fixes, particularly around string operations and type handling, alongside CI maintenance and typing improvements.

v2.2.510 fixes
Apr 19, 2025

NumPy 2.2.5 is a patch release focused on fixing bugs discovered since 2.2.4, alongside significant typing improvements and CI maintenance.

v2.2.47 fixes1 feature
Mar 16, 2025

NumPy 2.2.4 is a patch release focusing on bug fixes, platform maintenance, and significant typing improvements. It supports Python versions from 3.10 through 3.13.

v2.2.37 fixes
Feb 13, 2025

NumPy 2.2.3 is a patch release focusing on bug fixes, particularly addressing data races related to free-threaded Python, and improving type hinting across the library.

v2.2.215 fixes
Jan 19, 2025

NumPy 2.2.2 is a patch release focused primarily on fixing bugs and improving type hinting accuracy across various operations and functions.

Common Errors

ValueError5 reports

ValueError in NumPy usually arises from providing a function with an argument of the correct data type but an inappropriate value. To fix it, carefully inspect the function's documentation to ensure all argument values fall within acceptable ranges or fulfill required conditions (e.g., array shapes must be compatible, data within allowed limits, or non-empty inputs when required). Adding checks with `if` statements to validate arguments before passing them to the NumPy function helps prevent the error.

ModuleNotFoundError3 reports

The "ModuleNotFoundError" with numpy usually means numpy isn't installed or the current Python environment can't find it. Fix this by ensuring numpy is installed (`pip install numpy`) within the specific environment you're using (e.g., virtualenv, conda environment), and that the environment is activated before running your script. If using Pyinstaller, use a hook to ensure numpy is properly bundled with your executable.

RecursionError2 reports

RecursionError in NumPy arises when a function calls itself excessively without a proper base case to terminate the recursion, often triggered by deeply nested structures or flawed parsing logic. To fix it, identify the recursive function, ensure a well-defined base case that stops the recursion under specific conditions, and consider iterative approaches or increasing recursion depth limit with `sys.setrecursionlimit` as a last resort, if appropriate. Also, use try-except blocks to handle cases of malformed data.

SystemError2 reports

SystemError in NumPy often arises from incorrect type handling during operations like `astype` conversions or `np.dot` when the input array dtypes are fundamentally incompatible. To fix this, carefully examine the input array dtypes and use `astype` or other explicit conversion methods to ensure they are compatible before performing the operation. If the dtypes should work together, the library itself may have an issue so reporting to the numpy team could be useful.

NotImplementedError1 report

The "NotImplementedError" in NumPy often arises when encountering data types or scalar types that lack a specific implementation for a requested operation, especially within functions expecting particular input structures. The fix involves explicitly handling the unsupported data type or scalar type by adding a case to the function's logic that converts it to a compatible type, or by providing a suitable alternative implementation for that type. A common pattern is to cast using `np.asarray` or leverage casting functions to more common, compatible types before performing the operation.

SubprocessDiedError1 report

SubprocessDiedError in NumPy often arises from running out of memory or encountering a fatal signal (like SIGSEGV) in a child process during parallel computations, especially with functions utilizing multiple cores. To mitigate this, try reducing the number of cores used by NumPy (e.g., `os.environ['NUMPY_NUM_THREADS'] = '1'`) or address the underlying memory issue by processing data in smaller chunks or optimizing memory usage within the problematic NumPy function. If the error persists, inspect the input data for corrupt or invalid values that could trigger a fatal error.

Related Data & ML Packages

Subscribe to Updates

Get notified when new versions are released

RSS Feed