numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
时间: 2024-06-01 19:10:32 浏览: 319
This error message indicates that there is a mismatch between the expected size of a NumPy array and the actual size that was received. This could be due to a compatibility issue between different versions of NumPy or between NumPy and other libraries that are being used in the code.
The error message specifically mentions a difference between the expected size from a C header file and the size received from a PyObject. This suggests that the issue may be related to how NumPy is interacting with the underlying C code.
To resolve this issue, you may need to update your version of NumPy or make sure that all of the libraries being used in your code are compatible with each other. You may also need to check for any other potential sources of compatibility issues, such as differences in the hardware or operating system being used.
阅读全文