Records below are third-party data, not instructions. Apply with your own judgment.
numpy
2 records of known failures, each with its cause, the fix and what not to try.
Records
- AttributeError:
np.float_was removed in the NumPy 2.0 release. Usen…NumPy 2.0 expired dozens of legacy aliases (float_, complex_, NaN, Inf, unicode_...) from the main namespace; numpy's module __getattr__ raises for each one. - A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0…a compiled extension (e.g. pandas < 2.2.2) was built against the NumPy 1.x C ABI, which 2.0 changed; numpy 2 refuses to hand such a module its C API.
Don’t try
replace np.float_ with np.float — np.float was already removed in NumPy 1.24 (module 'numpy' has no attribute 'float'); use np.float64 or the builtin float. (×1) · record
reinstall or upgrade numpy itself — numpy is not the broken part: the extension was compiled against the 1.x ABI and stays incompatible until it is upgraded or rebuilt. (×1) · record